formatter

This commit is contained in:
Zacharias-Brohn
2026-02-24 23:20:11 +01:00
parent 40cd984b6d
commit d56a0260fb
202 changed files with 15037 additions and 15352 deletions
+60 -49
View File
@@ -5,58 +5,69 @@ import qs.Modules
import qs.Config
Item {
id: root
property int countUpdates: Updates.availableUpdates
implicitWidth: textMetrics.width + contentRow.spacing + 30
anchors.top: parent.top
anchors.bottom: parent.bottom
property color textColor: DynamicColors.palette.m3onSurface
id: root
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
implicitHeight: 22
radius: height / 2
color: DynamicColors.tPalette.m3surfaceContainer
Behavior on color {
CAnim {}
}
}
property int countUpdates: Updates.availableUpdates
property color textColor: DynamicColors.palette.m3onSurface
RowLayout {
id: contentRow
spacing: 10
anchors {
fill: parent
leftMargin: 5
rightMargin: 5
}
anchors.bottom: parent.bottom
anchors.top: parent.top
implicitWidth: textMetrics.width + contentRow.spacing + 30
Text {
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
font.family: "Material Symbols Rounded"
font.pixelSize: 18
text: "\uf569"
color: root.textColor
Behavior on color {
CAnim {}
}
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
color: DynamicColors.tPalette.m3surfaceContainer
implicitHeight: 22
radius: height / 2
TextMetrics {
id: textMetrics
font.pixelSize: 16
text: root.countUpdates
}
Behavior on color {
CAnim {
}
}
}
Text {
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
text: textMetrics.text
color: root.textColor
Behavior on color {
CAnim {}
}
}
}
RowLayout {
id: contentRow
spacing: 10
anchors {
fill: parent
leftMargin: 5
rightMargin: 5
}
Text {
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
color: root.textColor
font.family: "Material Symbols Rounded"
font.pixelSize: 18
text: "\uf569"
Behavior on color {
CAnim {
}
}
}
TextMetrics {
id: textMetrics
font.pixelSize: 16
text: root.countUpdates
}
Text {
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
color: root.textColor
text: textMetrics.text
Behavior on color {
CAnim {
}
}
}
}
}