mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-13 00:42:49 -05:00
notif: improve indicator
This commit is contained in:
@@ -15,6 +15,7 @@ BasePill {
|
|||||||
implicitHeight: root.widgetThickness - root.horizontalPadding * 2
|
implicitHeight: root.widgetThickness - root.horizontalPadding * 2
|
||||||
|
|
||||||
DankIcon {
|
DankIcon {
|
||||||
|
id: notifIcon
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
name: SessionData.doNotDisturb ? "notifications_off" : "notifications"
|
name: SessionData.doNotDisturb ? "notifications_off" : "notifications"
|
||||||
size: Theme.barIconSize(root.barThickness, -4)
|
size: Theme.barIconSize(root.barThickness, -4)
|
||||||
@@ -22,14 +23,12 @@ BasePill {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 8
|
width: 6
|
||||||
height: 8
|
height: 6
|
||||||
radius: 4
|
radius: 3
|
||||||
color: Theme.error
|
color: Theme.error
|
||||||
anchors.right: parent.right
|
anchors.right: notifIcon.right
|
||||||
anchors.top: parent.top
|
anchors.top: notifIcon.top
|
||||||
anchors.rightMargin: SettingsData.dankBarNoBackground ? 0 : 6
|
|
||||||
anchors.topMargin: SettingsData.dankBarNoBackground ? 0 : 6
|
|
||||||
visible: root.hasUnread
|
visible: root.hasUnread
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user