left-bar working, bottom bar semi-broken
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user