chore(StatusBetaTag): make fg color configurable

This commit is contained in:
Lukáš Tinkl 2024-08-10 14:26:17 +02:00 committed by Lukáš Tinkl
parent 9acf723ddc
commit c50c970e42
1 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,7 @@ import StatusQ.Core.Theme 0.1
Rectangle { Rectangle {
id: root id: root
property color fgColor: Theme.palette.baseColor1
property alias tooltipText: tip.text property alias tooltipText: tip.text
implicitHeight: 20 implicitHeight: 20
@ -14,13 +15,12 @@ Rectangle {
radius: 4 radius: 4
color: "transparent" color: "transparent"
border.width: 1 border.width: 1
border.color: Theme.palette.baseColor1 border.color: root.fgColor
StatusBaseText { StatusBaseText {
id: label
font.pixelSize: 11 font.pixelSize: 11
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.palette.baseColor1 color: root.fgColor
anchors.centerIn: parent anchors.centerIn: parent
text: "Beta" text: "Beta"
} }