diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-03 18:59:05 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-03 18:59:05 +1000 |
| commit | fe4e72eab3170c5f888b14251d15e51b2a5adf9c (patch) | |
| tree | b5badd0b7b08b6831e51ae225c6bb44dc04051c4 /widgets/ExtraIndicator.qml | |
| parent | dcontent: impl bt device details (diff) | |
| download | caelestia-shell-fe4e72eab3170c5f888b14251d15e51b2a5adf9c.tar.gz caelestia-shell-fe4e72eab3170c5f888b14251d15e51b2a5adf9c.tar.bz2 caelestia-shell-fe4e72eab3170c5f888b14251d15e51b2a5adf9c.zip | |
internal: better shadow
Diffstat (limited to 'widgets/ExtraIndicator.qml')
| -rw-r--r-- | widgets/ExtraIndicator.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/ExtraIndicator.qml b/widgets/ExtraIndicator.qml index 448af23..fd6f6ee 100644 --- a/widgets/ExtraIndicator.qml +++ b/widgets/ExtraIndicator.qml @@ -1,7 +1,6 @@ import qs.services import qs.config import QtQuick -import QtQuick.Effects StyledRect { required property int extra @@ -15,16 +14,17 @@ StyledRect { implicitWidth: count.implicitWidth + Appearance.padding.normal * 2 implicitHeight: count.implicitHeight + Appearance.padding.small * 2 - layer.enabled: opacity > 0 - layer.effect: MultiEffect { - shadowEnabled: true - blurMax: 10 - shadowColor: Colours.palette.m3shadow - } - opacity: extra > 0 ? 1 : 0 scale: extra > 0 ? 1 : 0.5 + Elevation { + anchors.fill: parent + radius: parent.radius + opacity: parent.opacity + z: -1 + level: 2 + } + StyledText { id: count |