summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 22:01:12 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 22:01:12 +1000
commit7d07f8175da4d37641a74321237da3fe163652a6 (patch)
tree096e4846a56ade7f5f32db87ed4c6a36d8ff6fe3 /modules/bar
parenthyprland: use qtobjects (diff)
downloadcaelestia-shell-7d07f8175da4d37641a74321237da3fe163652a6.tar.gz
caelestia-shell-7d07f8175da4d37641a74321237da3fe163652a6.tar.bz2
caelestia-shell-7d07f8175da4d37641a74321237da3fe163652a6.zip
bar: minor code changes
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/Pills.qml2
-rw-r--r--modules/bar/components/Tray.qml6
2 files changed, 5 insertions, 3 deletions
diff --git a/modules/bar/Pills.qml b/modules/bar/Pills.qml
index f608549..503de02 100644
--- a/modules/bar/Pills.qml
+++ b/modules/bar/Pills.qml
@@ -84,7 +84,7 @@ Item {
StatusIcons {
anchors.left: root.get(tray.right, undefined)
- anchors.leftMargin: root.get(Appearance.padding.normal, 0)
+ anchors.leftMargin: root.get(Appearance.padding.large, 0)
anchors.top: root.get(undefined, tray.bottom)
anchors.topMargin: root.get(0, Appearance.padding.large)
diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml
index 7cc93be..37de73b 100644
--- a/modules/bar/components/Tray.qml
+++ b/modules/bar/components/Tray.qml
@@ -10,6 +10,7 @@ import Qt5Compat.GraphicalEffects
StyledRect {
animate: true
clip: true
+ visible: width > 0 && height > 0 // To avoid warnings about being visible with no size
BoxLayout {
Repeater {
@@ -21,8 +22,8 @@ StyledRect {
required property SystemTrayItem modelData
acceptedButtons: Qt.LeftButton | Qt.RightButton
- width: Math.round(Appearance.font.size.large * 1.2)
- height: Math.round(Appearance.font.size.large * 1.2)
+ width: Appearance.font.size.smaller * 2
+ height: Appearance.font.size.smaller * 2
onClicked: event => {
if (event.button === Qt.LeftButton)
@@ -31,6 +32,7 @@ StyledRect {
menu.open();
}
+ // TODO custom menu
QsMenuAnchor {
id: menu