hefty: bar: fix weird window info popup cutoff; spacing adjustments

This commit is contained in:
end-4
2026-03-29 23:52:01 +02:00
parent ce52695746
commit 37c3fface4
3 changed files with 10 additions and 1 deletions
@@ -66,6 +66,8 @@ HBarWidgetWithPopout {
}
spacing: 4
Item {} // Trick for extra spacing
AlignedFadeLoader {
shown: C.Config.options.hefty.bar.resources.showMemory || (
!battLoader.visible
@@ -98,6 +100,8 @@ HBarWidgetWithPopout {
Layout.fillHeight: !root.vertical
sourceComponent: Battery {}
}
Item {}
}
}
@@ -500,7 +504,7 @@ HBarWidgetWithPopout {
}
W.ConfigSwitch {
buttonIcon: "memory"
text: S.Translation.tr("Show physical memory usage")
text: S.Translation.tr("Show RAM usage")
checked: C.Config.options.hefty.bar.resources.showRam
onCheckedChanged: {
C.Config.options.hefty.bar.resources.showRam = checked;
@@ -27,9 +27,11 @@ HBarWidgetWithPopout {
HBarWidgetContent {
id: contentRoot
vertical: root.vertical
atBottom: root.atBottom
showPopup: root.showPopup
contentImplicitWidth: trayContent.implicitWidth
contentImplicitHeight: trayContent.implicitHeight
@@ -67,6 +69,8 @@ HBarWidgetWithPopout {
visible: TrayService.unpinnedItems.length > 0
Layout.fillWidth: true
Layout.fillHeight: true
Layout.topMargin: 4 * root.vertical
Layout.leftMargin: 4 * !root.vertical
hoverEnabled: true
acceptedButtons: Qt.AllButtons
@@ -30,6 +30,7 @@ HBarWidgetWithPopout {
return root.activeWindow?.appId;
return Translation.tr("Options")
}
onPrimaryTextChanged: showPopup = false;
property real fontPixelSize: Appearance.font.pixelSize.smaller