scheme setter, light mode?

This commit is contained in:
Zacharias-Brohn
2026-02-19 01:10:46 +01:00
parent 646f70a98d
commit 7f8a516b4b
16 changed files with 333 additions and 42 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ Item {
anchors.bottom: parent.bottom
property bool expanded: false
property color textColor: DynamicColors.palette.m3tertiaryFixed
property color textColor: DynamicColors.palette.m3primary
property color barColor: DynamicColors.palette.m3primary
Behavior on implicitWidth {
+1 -1
View File
@@ -27,7 +27,7 @@ Item {
anchors.centerIn: parent
text: Time.dateStr
color: DynamicColors.palette.m3tertiary
color: DynamicColors.palette.m3onSurface
Behavior on color {
CAnim {}
+3 -3
View File
@@ -32,19 +32,19 @@ Row {
Resource {
icon: "gamepad"
value: SystemUsage.gpuPerc
color: DynamicColors.palette.m3primaryFixed
color: DynamicColors.palette.m3tertiary
}
Resource {
icon: "host"
value: SystemUsage.gpuMemUsed
color: DynamicColors.palette.m3secondaryFixed
color: DynamicColors.palette.m3primary
}
Resource {
icon: "hard_disk"
value: SystemUsage.storagePerc
color: DynamicColors.palette.m3tertiary
color: DynamicColors.palette.m3secondary
}
component Resource: Item {
+1 -1
View File
@@ -26,7 +26,7 @@ Item {
anchors.centerIn: parent
property color iconColor: DynamicColors.palette.m3tertiaryFixed
property color iconColor: DynamicColors.palette.m3onSurface
text: HasNotifications.hasNotifications ? "\uf4fe" : "\ue7f4"
font.family: "Material Symbols Rounded"
+3 -2
View File
@@ -15,8 +15,9 @@ Item {
implicitWidth: resourceRowLayout.x < 0 ? 0 : resourceRowLayout.implicitWidth
implicitHeight: 22
property bool warning: percentage * 100 >= warningThreshold
property color usageColor: warning ? DynamicColors.palette.m3error : DynamicColors.palette.m3primary
property color borderColor: warning ? DynamicColors.palette.m3onError : DynamicColors.palette.m3onPrimary
required property color mainColor
property color usageColor: warning ? DynamicColors.palette.m3error : mainColor
property color borderColor: warning ? DynamicColors.palette.m3onError : mainColor
Behavior on percentage {
NumberAnimation {
+1 -1
View File
@@ -69,7 +69,7 @@ Item {
Layout.alignment: Qt.AlignLeft
text: root.details
font.pointSize: 10
color: "#cccccc"
color: root.textColor
}
}
}
+8 -5
View File
@@ -13,7 +13,6 @@ Item {
id: root
implicitWidth: rowLayout.implicitWidth + rowLayout.anchors.leftMargin + rowLayout.anchors.rightMargin
implicitHeight: 34
property color textColor: DynamicColors.palette.m3tertiaryFixed
clip: true
Rectangle {
@@ -41,46 +40,50 @@ Item {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: 18
text: "memory_alt"
color: root.textColor
color: DynamicColors.palette.m3primary
}
Resource {
percentage: ResourceUsage.memoryUsedPercentage
warningThreshold: 95
mainColor: DynamicColors.palette.m3primary
}
MaterialIcon {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: 18
text: "memory"
color: root.textColor
color: DynamicColors.palette.m3secondary
}
Resource {
percentage: ResourceUsage.cpuUsage
warningThreshold: 80
mainColor: DynamicColors.palette.m3secondary
}
MaterialIcon {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: 18
text: "gamepad"
color: root.textColor
color: DynamicColors.palette.m3tertiary
}
Resource {
percentage: ResourceUsage.gpuUsage
mainColor: DynamicColors.palette.m3tertiary
}
MaterialIcon {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: 18
text: "developer_board"
color: root.textColor
color: DynamicColors.palette.m3primary
}
Resource {
percentage: ResourceUsage.gpuMemUsage
mainColor: DynamicColors.palette.m3primary
}
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ Item {
implicitWidth: textMetrics.width + contentRow.spacing + 30
anchors.top: parent.top
anchors.bottom: parent.bottom
property color textColor: DynamicColors.palette.m3tertiaryFixed
property color textColor: DynamicColors.palette.m3secondary
Rectangle {
anchors.left: parent.left