diff --git a/modules/bar/Battery.qml b/modules/bar/Battery.qml index a731743..9b78f9a 100644 --- a/modules/bar/Battery.qml +++ b/modules/bar/Battery.qml @@ -69,7 +69,6 @@ Item { opacity: 0.7 color: Colors.foreground text: isCharging ? timeToFull.toFixed(1) + "h to full" : timeToEmpty.toFixed(1) + "h left" - onTextChanged: console.log(UPower.displayDevice.percentage) } } } diff --git a/modules/bar/Clock.qml b/modules/bar/Clock.qml index 9fc4274..a41d700 100644 --- a/modules/bar/Clock.qml +++ b/modules/bar/Clock.qml @@ -36,7 +36,7 @@ Item { font.pixelSize: Settings.fontSize - 2 color: Colors.foreground - text: Qt.formatDateTime(clockDate.date, "d.m.yy") + text: Qt.formatDateTime(clockDate.date, "dd.MM.yy") SystemClock { id: clockDate diff --git a/modules/bar/PowerProfiles.qml b/modules/bar/PowerProfiles.qml index a937d6e..cfd9d9b 100644 --- a/modules/bar/PowerProfiles.qml +++ b/modules/bar/PowerProfiles.qml @@ -6,7 +6,7 @@ import "../../" Item { id: root - width: 50 + width: powerLayout.implicitWidth implicitHeight: 34 MouseArea { anchors.fill: parent diff --git a/modules/bar/SystemTray.qml b/modules/bar/SystemTray.qml index a29775a..3b679dc 100644 --- a/modules/bar/SystemTray.qml +++ b/modules/bar/SystemTray.qml @@ -6,7 +6,7 @@ Item { clip: true // This was already correct in your last file, but keep it this way! - implicitWidth: layout.implicitWidth + implicitWidth: layout.implicitWidth < 0 ? 0 : layout.implicitWidth implicitHeight: 30 // Hide if empty so we don't have a 50px gap for nothing diff --git a/modules/bar/Volume.qml b/modules/bar/Volume.qml index 2632dd0..ae95528 100644 --- a/modules/bar/Volume.qml +++ b/modules/bar/Volume.qml @@ -29,11 +29,11 @@ Item { function getVolumeIcon() { // Safety check: if Pipewire is dead or sink is missing if (!sink) - return "audio-volume-muted-blocking"; + return "volume_mute"; // If muted, show the hush icon if (sink.audio.muted) - return "audio-volume-muted"; + return "volume_mute"; // Volume is usually 0.0 to 1.0 (0% to 100%) const vol = sink.audio.volume; @@ -65,7 +65,7 @@ Item { color: Colors.foreground font.family: Settings.font font.pixelSize: Settings.fontSize - text: Pipewire.ready ? Math.round(root.sink.audio.volume * 100) + "%" : "0%" + text: Pipewire.ready ? root.sink.audio.volume.toFixed(2) + "%" : "0%" } Icons { id: icon