mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
hefty: bar: fix weird window info popup cutoff; spacing adjustments
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user