diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-12 20:57:38 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-12 20:57:38 -0500 |
| commit | ffe14748a2cf5bc5710fe24d0ccae80b8437f35d (patch) | |
| tree | fa171896eda2b20570230ccc6341bc8c1d59d66b /modules/notifications/AppIconBadge.qml | |
| parent | conrolcenter: debug/rewrite of wireless panel (diff) | |
| download | caelestia-shell-ffe14748a2cf5bc5710fe24d0ccae80b8437f35d.tar.gz caelestia-shell-ffe14748a2cf5bc5710fe24d0ccae80b8437f35d.tar.bz2 caelestia-shell-ffe14748a2cf5bc5710fe24d0ccae80b8437f35d.zip | |
notifs/toasts: reverted all changes to notifications to c0ea060f
Diffstat (limited to 'modules/notifications/AppIconBadge.qml')
| -rw-r--r-- | modules/notifications/AppIconBadge.qml | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/modules/notifications/AppIconBadge.qml b/modules/notifications/AppIconBadge.qml deleted file mode 100644 index 286522f..0000000 --- a/modules/notifications/AppIconBadge.qml +++ /dev/null @@ -1,57 +0,0 @@ -import qs.components -import qs.components.effects -import qs.services -import qs.config -import qs.utils -import Quickshell -import Quickshell.Services.Notifications -import QtQuick - -StyledRect { - id: root - - required property Notifs.Notif modelData - required property bool hasImage - required property bool hasAppIcon - - radius: Appearance.rounding.full - color: modelData.getBadgeBackgroundColor() - implicitWidth: root.hasImage ? Config.notifs.sizes.badge : Config.notifs.sizes.image - implicitHeight: root.hasImage ? Config.notifs.sizes.badge : Config.notifs.sizes.image - - Loader { - id: icon - - active: root.hasAppIcon - asynchronous: false - visible: active - - anchors.centerIn: parent - - width: Math.round(parent.width * 0.6) - height: Math.round(parent.width * 0.6) - - sourceComponent: ColouredIcon { - anchors.fill: parent - source: Quickshell.iconPath(root.modelData.appIcon) - colour: root.modelData.getIconColor() - layer.enabled: root.modelData.appIcon.endsWith("symbolic") - } - } - - Loader { - active: !root.hasAppIcon - asynchronous: false - visible: active - anchors.centerIn: parent - anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02 - anchors.verticalCenterOffset: Appearance.font.size.large * 0.02 - - sourceComponent: MaterialIcon { - text: Icons.getNotifIcon(root.modelData.summary, root.modelData.urgency) - color: root.modelData.getIconColor() - font.pointSize: Appearance.font.size.large - } - } -} - |