diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-10 16:26:09 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-09-10 16:26:09 +0200 |
commit | d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6 (patch) | |
tree | 06d8f7132ea2522466b6aa54701f7edcdf3d884f | |
parent | d20393e077b8d97b18f4a224ddcb20caf6dac23b (diff) | |
download | nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar.gz nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar.bz2 nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.tar.xz nixos-d1261f6586ab5d91e81c04ca0f586e35ee6fb8a6.zip |
...
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 10 | ||||
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml | 4 | ||||
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/SystemTray.qml | 28 |
3 files changed, 21 insertions, 21 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml index 399b566f..d52740b2 100644 --- a/accounts/gkleen@sif/shell/quickshell/Bar.qml +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml | |||
@@ -89,18 +89,8 @@ PanelWindow { | |||
89 | 89 | ||
90 | PipewireWidget {} | 90 | PipewireWidget {} |
91 | 91 | ||
92 | Item { | ||
93 | height: parent.height | ||
94 | width: 2 | ||
95 | } | ||
96 | |||
97 | SystemTray {} | 92 | SystemTray {} |
98 | 93 | ||
99 | Item { | ||
100 | height: parent.height | ||
101 | width: 2 | ||
102 | } | ||
103 | |||
104 | KeyboardLayout {} | 94 | KeyboardLayout {} |
105 | 95 | ||
106 | Item { | 96 | Item { |
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml b/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml index 545ef24f..87c7c05b 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml | |||
@@ -26,11 +26,11 @@ Singleton { | |||
26 | Component.onCompleted: root.currBrightness = root.calcCurrBrightness() | 26 | Component.onCompleted: root.currBrightness = root.calcCurrBrightness() |
27 | Connections { | 27 | Connections { |
28 | target: currFile | 28 | target: currFile |
29 | onLoaded: root.currBrightness = root.calcCurrBrightness() | 29 | function onLoaded() { root.currBrightness = root.calcCurrBrightness(); } |
30 | } | 30 | } |
31 | Connections { | 31 | Connections { |
32 | target: maxFile | 32 | target: maxFile |
33 | onLoaded: root.currBrightness = root.calcCurrBrightness() | 33 | function onLoaded() { root.currBrightness = root.calcCurrBrightness(); } |
34 | } | 34 | } |
35 | 35 | ||
36 | onCurrBrightnessChanged: { | 36 | onCurrBrightnessChanged: { |
diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml index 956f3995..6f70be29 100644 --- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml +++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml | |||
@@ -47,7 +47,7 @@ Item { | |||
47 | return "" | 47 | return "" |
48 | } | 48 | } |
49 | 49 | ||
50 | width: 16 | 50 | width: icon.width + 6 |
51 | height: parent.height | 51 | height: parent.height |
52 | anchors.verticalCenter: parent.verticalCenter | 52 | anchors.verticalCenter: parent.verticalCenter |
53 | 53 | ||
@@ -83,14 +83,24 @@ Item { | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | IconImage { | 86 | Rectangle { |
87 | anchors.centerIn: parent | 87 | anchors.fill: parent |
88 | width: parent.width | 88 | color: { |
89 | height: parent.width | 89 | if (trayItemArea.containsMouse) |
90 | source: trayItemWrapper.iconSource | 90 | return "#33808080"; |
91 | asynchronous: true | 91 | return "transparent"; |
92 | smooth: true | 92 | } |
93 | mipmap: true | 93 | |
94 | IconImage { | ||
95 | id: icon | ||
96 | |||
97 | anchors.centerIn: parent | ||
98 | implicitSize: 16 | ||
99 | source: trayItemWrapper.iconSource | ||
100 | asynchronous: true | ||
101 | smooth: true | ||
102 | mipmap: true | ||
103 | } | ||
94 | } | 104 | } |
95 | } | 105 | } |
96 | 106 | ||