mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-18 07:07:45 +00:00
Remove last use of Qt5Compat.GraphicalEffects
This commit is contained in:
parent
b400a847b2
commit
a3a0962225
1 changed files with 13 additions and 10 deletions
|
@ -6,7 +6,7 @@ pragma ComponentBehavior: Bound
|
|||
import QtQuick
|
||||
import QtQuick.Controls as QQC2
|
||||
import QtQuick.Layouts
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import QtQuick.Effects
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.kirigamiaddons.formcard as FormCard
|
||||
|
@ -101,15 +101,18 @@ QQC2.Control {
|
|||
}
|
||||
|
||||
layer.enabled: !(bannerImage.width < layout.maximumWidth)
|
||||
layer.effect: OpacityMask {
|
||||
maskSource: Item {
|
||||
width: bannerImage.width
|
||||
height: bannerImage.height
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
width: bannerImage.width
|
||||
height: bannerImage.height
|
||||
radius: Kirigami.Units.smallSpacing
|
||||
layer.effect: MultiEffect {
|
||||
id: root
|
||||
|
||||
maskEnabled: true
|
||||
maskSpreadAtMax: 1
|
||||
maskSpreadAtMin: 1
|
||||
maskThresholdMin: 0.5
|
||||
maskSource: ShaderEffectSource {
|
||||
sourceItem: Rectangle {
|
||||
width: root.width
|
||||
height: root.height
|
||||
radius: Kirigami.Units.mediumSpacing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue