Rework notification colors

This commit is contained in:
Jan Bidler
2022-08-25 19:19:47 +02:00
parent f004f9e3c8
commit 2f4116796a

View File

@@ -338,15 +338,15 @@ Kirigami.ScrollablePage {
trailing: RowLayout { trailing: RowLayout {
QQC2.Label { QQC2.Label {
text: notificationCount text: notificationCount > 0 ? notificationCount : ""
visible: notificationCount > 0 visible: unreadCount > 0
padding: Kirigami.Units.smallSpacing padding: Kirigami.Units.smallSpacing
color: highlightCount > 0 ? "white" : Kirigami.Theme.textColor color: Kirigami.Theme.textColor
Layout.minimumWidth: height Layout.minimumWidth: height
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
background: Rectangle { background: Rectangle {
Kirigami.Theme.colorSet: Kirigami.Theme.Button Kirigami.Theme.colorSet: Kirigami.Theme.Button
color: highlightCount > 0 ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.backgroundColor color: highlightCount > 0 ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.disabledTextColor
radius: height / 2 radius: height / 2
} }
} }