1
Fork 0
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:
Joshua Goins 2024-04-26 14:59:28 -04:00
parent b400a847b2
commit a3a0962225

View file

@ -6,7 +6,7 @@ pragma ComponentBehavior: Bound
import QtQuick import QtQuick
import QtQuick.Controls as QQC2 import QtQuick.Controls as QQC2
import QtQuick.Layouts import QtQuick.Layouts
import Qt5Compat.GraphicalEffects import QtQuick.Effects
import org.kde.kirigami as Kirigami import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.formcard as FormCard import org.kde.kirigamiaddons.formcard as FormCard
@ -101,15 +101,18 @@ QQC2.Control {
} }
layer.enabled: !(bannerImage.width < layout.maximumWidth) layer.enabled: !(bannerImage.width < layout.maximumWidth)
layer.effect: OpacityMask { layer.effect: MultiEffect {
maskSource: Item { id: root
width: bannerImage.width
height: bannerImage.height maskEnabled: true
Rectangle { maskSpreadAtMax: 1
anchors.centerIn: parent maskSpreadAtMin: 1
width: bannerImage.width maskThresholdMin: 0.5
height: bannerImage.height maskSource: ShaderEffectSource {
radius: Kirigami.Units.smallSpacing sourceItem: Rectangle {
width: root.width
height: root.height
radius: Kirigami.Units.mediumSpacing
} }
} }
} }