parent
a3525c63e3
commit
8b7911cff9
|
@ -28,7 +28,7 @@ Rectangle {
|
||||||
visible: statusBadge.value > 0
|
visible: statusBadge.value > 0
|
||||||
font.pixelSize: statusBadge.value > 99 ? 10 : 12
|
font.pixelSize: statusBadge.value > 99 ? 10 : 12
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Theme.palette.white
|
color: Theme.palette.statusBadge.foregroundColor
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: {
|
text: {
|
||||||
if (statusBadge.value > 99) {
|
if (statusBadge.value > 99) {
|
||||||
|
|
|
@ -120,5 +120,9 @@ ThemePalette {
|
||||||
property QtObject statusAppNavBar: QtObject {
|
property QtObject statusAppNavBar: QtObject {
|
||||||
property color backgroundColor: baseColor5
|
property color backgroundColor: baseColor5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property QtObject statusBadge: QtObject {
|
||||||
|
property color foregroundColor: baseColor3
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,5 +120,9 @@ ThemePalette {
|
||||||
property QtObject statusAppNavBar: QtObject {
|
property QtObject statusAppNavBar: QtObject {
|
||||||
property color backgroundColor: baseColor4
|
property color backgroundColor: baseColor4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property QtObject statusBadge: QtObject {
|
||||||
|
property color foregroundColor: white
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,10 @@ QtObject {
|
||||||
property color backgroundColor
|
property color backgroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
property QtObject statusBadge: QtObject {
|
||||||
|
property color foregroundColor
|
||||||
|
}
|
||||||
|
|
||||||
function alphaColor(color, alpha) {
|
function alphaColor(color, alpha) {
|
||||||
let actualColor = Qt.darker(color, 1)
|
let actualColor = Qt.darker(color, 1)
|
||||||
actualColor.a = alpha
|
actualColor.a = alpha
|
||||||
|
|
Loading…
Reference in New Issue