fix positioning in modules
This commit is contained in:
parent
6f72c99bf3
commit
33906413b4
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -6,7 +6,7 @@ import "../../"
|
||||
|
||||
Item {
|
||||
id: root
|
||||
width: 50
|
||||
width: powerLayout.implicitWidth
|
||||
implicitHeight: 34
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user