left-bar working, bottom bar semi-broken

This commit is contained in:
2026-08-14 16:31:52 +02:00
parent 1d150292d3
commit 4517e5ecd0
28 changed files with 404 additions and 168 deletions
+3 -1
View File
@@ -10,10 +10,12 @@ import qs.Components
MaterialIcon {
id: speaker
required property bool horizontal
animate: true
color: Audio.muted ? DynamicColors.palette.m3error : DynamicColors.palette.m3onSurface
fill: 1
font.pointSize: Appearance.font.size.larger
font.pointSize: horizontal ? Appearance.font.size.larger : Appearance.font.size.large
text: Audio.muted ? "volume_off" : "volume_up"
Behavior on Layout.maximumWidth {
+3 -1
View File
@@ -10,10 +10,12 @@ import qs.Components
MaterialIcon {
id: mic
required property bool horizontal
animate: true
color: (Audio.sourceMuted ?? false) ? DynamicColors.palette.m3error : DynamicColors.palette.m3onSurface
fill: 1
font.pointSize: Appearance.font.size.larger
font.pointSize: horizontal ? Appearance.font.size.larger : Appearance.font.size.large
text: Audio.sourceMuted ? "mic_off" : "mic"
Behavior on Layout.maximumWidth {
+3
View File
@@ -8,6 +8,8 @@ import qs.Helpers
Item {
id: root
required property bool horizontal
implicitHeight: Battery.isLaptop ? batteryIconLoader.item.implicitHeight : upowerIconLoader.item.implicitHeight
implicitWidth: Battery.isLaptop ? batteryIconLoader.item.implicitWidth : upowerIconLoader.item.implicitWidth
@@ -123,6 +125,7 @@ Item {
Layout.alignment: Qt.AlignVCenter
animate: true
fill: 1
font.pointSize: root.horizontal ? Appearance.font.size.larger : Appearance.font.size.large
text: {
if (PowerProfiles.profile === PowerProfile.PowerSaver)
return "energy_savings_leaf";