diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 22:01:12 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 22:01:12 +1000 |
| commit | 7d07f8175da4d37641a74321237da3fe163652a6 (patch) | |
| tree | 096e4846a56ade7f5f32db87ed4c6a36d8ff6fe3 /modules/bar/components/Tray.qml | |
| parent | hyprland: use qtobjects (diff) | |
| download | caelestia-shell-7d07f8175da4d37641a74321237da3fe163652a6.tar.gz caelestia-shell-7d07f8175da4d37641a74321237da3fe163652a6.tar.bz2 caelestia-shell-7d07f8175da4d37641a74321237da3fe163652a6.zip | |
bar: minor code changes
Diffstat (limited to 'modules/bar/components/Tray.qml')
| -rw-r--r-- | modules/bar/components/Tray.qml | 6 |
1 files changed, 4 insertions, 2 deletions
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 |