hardcoded icons on scaled, find better solution later

This commit is contained in:
Zacharias-Brohn
2025-11-14 23:10:13 +01:00
parent 52a382b0ad
commit 72e12d2078
7 changed files with 72 additions and 31 deletions
+12 -11
View File
@@ -5,7 +5,7 @@ import qs.Modules
Item {
id: root
required property int countUpdates
implicitWidth: 60
implicitWidth: contentRow.childrenRect.width + 10
implicitHeight: 22
Rectangle {
@@ -15,6 +15,8 @@ Item {
}
RowLayout {
id: contentRow
spacing: 10
anchors {
fill: parent
leftMargin: 5
@@ -29,17 +31,16 @@ Item {
color: "#ffffff"
}
Item {
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
implicitWidth: 18
implicitHeight: root.implicitHeight
TextMetrics {
id: textMetrics
font.pixelSize: 16
text: root.countUpdates
}
Text {
anchors.centerIn: parent
text: root.countUpdates
color: "white"
}
Text {
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
text: textMetrics.text
color: "white"
}
}
}