test new systray #50

Merged
zach merged 6 commits from new-systray into main 2026-04-09 19:26:57 +02:00
3 changed files with 10 additions and 6 deletions
Showing only changes of commit 635e2c3964 - Show all commits
+6 -6
View File
@@ -66,8 +66,8 @@ JsonObject {
} }
component Padding: JsonObject { component Padding: JsonObject {
property int large: 15 * scale property int large: 15 * scale
property int larger: 12 * scale property int larger: 13 * scale
property int normal: 10 * scale property int normal: 9 * scale
property real scale: 1 property real scale: 1
property int small: 5 * scale property int small: 5 * scale
property int smaller: 7 * scale property int smaller: 7 * scale
@@ -75,18 +75,18 @@ JsonObject {
} }
component Rounding: JsonObject { component Rounding: JsonObject {
property int full: 1000 * scale property int full: 1000 * scale
property int large: 25 * scale property int large: 24 * scale
property int normal: 17 * scale property int normal: 18 * scale
property real scale: 1 property real scale: 1
property int small: 12 * scale property int small: 12 * scale
property int smallest: 8 * scale property int smallest: 8 * scale
} }
component Spacing: JsonObject { component Spacing: JsonObject {
property int large: 20 * scale property int large: 20 * scale
property int larger: 15 * scale property int larger: 16 * scale
property int normal: 12 * scale property int normal: 12 * scale
property real scale: 1 property real scale: 1
property int small: 7 * scale property int small: 8 * scale
property int smaller: 10 * scale property int smaller: 10 * scale
} }
component Transparency: JsonObject { component Transparency: JsonObject {
+2
View File
@@ -21,6 +21,7 @@ RowLayout {
property int warningThreshold: 80 property int warningThreshold: 80
percentage: 0 percentage: 0
spacing: Appearance.spacing.smaller
Behavior on animatedPercentage { Behavior on animatedPercentage {
Anim { Anim {
@@ -38,6 +39,7 @@ RowLayout {
MaterialIcon { MaterialIcon {
id: icon id: icon
Layout.preferredWidth: 16
color: root.iconColor color: root.iconColor
font.pointSize: Appearance.font.size.larger font.pointSize: Appearance.font.size.larger
text: root.icon text: root.icon
+2
View File
@@ -17,6 +17,7 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
animate: true animate: true
color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : root.textColor color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : root.textColor
fill: 1
font.pointSize: Appearance.font.size.larger font.pointSize: Appearance.font.size.larger
text: Audio.sourceMuted ? "mic_off" : "mic" text: Audio.sourceMuted ? "mic_off" : "mic"
} }
@@ -25,6 +26,7 @@ RowLayout {
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
animate: true animate: true
color: Audio.muted ? DynamicColors.palette.m3error : root.textColor color: Audio.muted ? DynamicColors.palette.m3error : root.textColor
fill: 1
font.pointSize: Appearance.font.size.larger font.pointSize: Appearance.font.size.larger
text: Audio.muted ? "volume_off" : "volume_up" text: Audio.muted ? "volume_off" : "volume_up"
} }