diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-01 00:56:55 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-01 00:56:55 +1000 |
| commit | d54df2792ad8536ea2e4135fba3bb3558e281fe1 (patch) | |
| tree | 22445e7f85a5c4e9e84a337f4676c97e4550905e /modules/bar/components/TrayItem.qml | |
| parent | dev: fix run script (diff) | |
| download | caelestia-shell-d54df2792ad8536ea2e4135fba3bb3558e281fe1.tar.gz caelestia-shell-d54df2792ad8536ea2e4135fba3bb3558e281fe1.tar.bz2 caelestia-shell-d54df2792ad8536ea2e4135fba3bb3558e281fe1.zip | |
feat: bar panel preset
Make presets more flexible
Fix workspaces when show windows disabled
Make rounded option for workspaces
Diffstat (limited to 'modules/bar/components/TrayItem.qml')
| -rw-r--r-- | modules/bar/components/TrayItem.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml index e6e9402..6be2904 100644 --- a/modules/bar/components/TrayItem.qml +++ b/modules/bar/components/TrayItem.qml @@ -6,9 +6,10 @@ import QtQuick import Qt5Compat.GraphicalEffects MouseArea { - id: item + id: root required property SystemTrayItem modelData + required property color colour acceptedButtons: Qt.LeftButton | Qt.RightButton width: Appearance.font.size.smaller * 2 @@ -25,7 +26,7 @@ MouseArea { QsMenuAnchor { id: menu - menu: item.modelData.menu + menu: root.modelData.menu anchor.window: this.QsWindow.window } @@ -33,7 +34,7 @@ MouseArea { id: icon visible: !BarConfig.tray.recolourIcons - source: item.modelData.icon + source: root.modelData.icon anchors.fill: parent } @@ -41,7 +42,7 @@ MouseArea { visible: BarConfig.tray.recolourIcons anchors.fill: icon source: icon - color: Appearance.colours.lavender + color: root.colour Behavior on color { ColorAnimation { |