diff options
Diffstat (limited to 'modules/bar/components')
| -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 |