diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-09 21:48:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-09 21:48:28 +1000 |
| commit | fbb939403832b0860302f1b400ad021794e1fadb (patch) | |
| tree | 06e116a06f6ac6845ec04bcfd9f74eef8e7aa2b1 /modules/lock | |
| parent | lock: fix notifs height on startup (diff) | |
| download | caelestia-shell-fbb939403832b0860302f1b400ad021794e1fadb.tar.gz caelestia-shell-fbb939403832b0860302f1b400ad021794e1fadb.tar.bz2 caelestia-shell-fbb939403832b0860302f1b400ad021794e1fadb.zip | |
notifs: add indicators for offscreen notifs
Diffstat (limited to 'modules/lock')
| -rw-r--r-- | modules/lock/Status.qml | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/modules/lock/Status.qml b/modules/lock/Status.qml index a3a0cac..65331b1 100644 --- a/modules/lock/Status.qml +++ b/modules/lock/Status.qml @@ -220,41 +220,9 @@ WrapperItem { } } - StyledRect { + ExtraIndicator { anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.margins: Appearance.padding.normal - - color: Colours.palette.m3tertiaryContainer - radius: Appearance.rounding.small - - implicitWidth: count.implicitWidth + Appearance.padding.normal * 2 - implicitHeight: count.implicitHeight + Appearance.padding.small * 2 - - opacity: Notifs.list.length > Config.lock.maxNotifs ? 1 : 0 - scale: Notifs.list.length > Config.lock.maxNotifs ? 1 : 0.8 - - StyledText { - id: count - - anchors.centerIn: parent - text: qsTr("+%1").arg(Notifs.list.length - Config.lock.maxNotifs) - color: Colours.palette.m3onTertiaryContainer - } - - Behavior on opacity { - Anim { - duration: Appearance.anim.durations.expressiveFastSpatial - easing.bezierCurve: Appearance.anim.curves.standard - } - } - - Behavior on scale { - Anim { - duration: Appearance.anim.durations.expressiveFastSpatial - easing.bezierCurve: Appearance.anim.curves.expressiveFastSpatial - } - } + extra: Notifs.list.length - Config.lock.maxNotifs } } } |