forked from Shinonome/dots-hyprland
hefty: bar: fix weird window info popup cutoff; spacing adjustments
This commit is contained in:
@@ -66,6 +66,8 @@ HBarWidgetWithPopout {
|
|||||||
}
|
}
|
||||||
spacing: 4
|
spacing: 4
|
||||||
|
|
||||||
|
Item {} // Trick for extra spacing
|
||||||
|
|
||||||
AlignedFadeLoader {
|
AlignedFadeLoader {
|
||||||
shown: C.Config.options.hefty.bar.resources.showMemory || (
|
shown: C.Config.options.hefty.bar.resources.showMemory || (
|
||||||
!battLoader.visible
|
!battLoader.visible
|
||||||
@@ -98,6 +100,8 @@ HBarWidgetWithPopout {
|
|||||||
Layout.fillHeight: !root.vertical
|
Layout.fillHeight: !root.vertical
|
||||||
sourceComponent: Battery {}
|
sourceComponent: Battery {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -500,7 +504,7 @@ HBarWidgetWithPopout {
|
|||||||
}
|
}
|
||||||
W.ConfigSwitch {
|
W.ConfigSwitch {
|
||||||
buttonIcon: "memory"
|
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
|
checked: C.Config.options.hefty.bar.resources.showRam
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
C.Config.options.hefty.bar.resources.showRam = checked;
|
C.Config.options.hefty.bar.resources.showRam = checked;
|
||||||
|
|||||||
@@ -27,9 +27,11 @@ HBarWidgetWithPopout {
|
|||||||
|
|
||||||
HBarWidgetContent {
|
HBarWidgetContent {
|
||||||
id: contentRoot
|
id: contentRoot
|
||||||
|
|
||||||
vertical: root.vertical
|
vertical: root.vertical
|
||||||
atBottom: root.atBottom
|
atBottom: root.atBottom
|
||||||
showPopup: root.showPopup
|
showPopup: root.showPopup
|
||||||
|
|
||||||
contentImplicitWidth: trayContent.implicitWidth
|
contentImplicitWidth: trayContent.implicitWidth
|
||||||
contentImplicitHeight: trayContent.implicitHeight
|
contentImplicitHeight: trayContent.implicitHeight
|
||||||
|
|
||||||
@@ -67,6 +69,8 @@ HBarWidgetWithPopout {
|
|||||||
visible: TrayService.unpinnedItems.length > 0
|
visible: TrayService.unpinnedItems.length > 0
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
Layout.topMargin: 4 * root.vertical
|
||||||
|
Layout.leftMargin: 4 * !root.vertical
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
acceptedButtons: Qt.AllButtons
|
acceptedButtons: Qt.AllButtons
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ HBarWidgetWithPopout {
|
|||||||
return root.activeWindow?.appId;
|
return root.activeWindow?.appId;
|
||||||
return Translation.tr("Options")
|
return Translation.tr("Options")
|
||||||
}
|
}
|
||||||
|
onPrimaryTextChanged: showPopup = false;
|
||||||
|
|
||||||
property real fontPixelSize: Appearance.font.pixelSize.smaller
|
property real fontPixelSize: Appearance.font.pixelSize.smaller
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user