diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-04 13:02:29 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-04 13:02:29 +0100 |
| commit | cde77f2a06c8040a723e74870d0c4ccd59ec2b67 (patch) | |
| tree | 641fbfdb73cb96a2cf980766f62c4d65c84e712c /accounts/gkleen@sif | |
| parent | 4f1afdd2527e5def0ec49666e58d6270ad77a6d0 (diff) | |
| download | nixos-cde77f2a06c8040a723e74870d0c4ccd59ec2b67.tar nixos-cde77f2a06c8040a723e74870d0c4ccd59ec2b67.tar.gz nixos-cde77f2a06c8040a723e74870d0c4ccd59ec2b67.tar.bz2 nixos-cde77f2a06c8040a723e74870d0c4ccd59ec2b67.tar.xz nixos-cde77f2a06c8040a723e74870d0c4ccd59ec2b67.zip | |
...
Diffstat (limited to 'accounts/gkleen@sif')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml b/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml index 0e07ff59..b7baee34 100644 --- a/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml +++ b/accounts/gkleen@sif/shell/quickshell/WorktimeWidget.qml | |||
| @@ -116,7 +116,10 @@ Item { | |||
| 116 | required property var state | 116 | required property var state |
| 117 | required property var mouseArea | 117 | required property var mouseArea |
| 118 | 118 | ||
| 119 | property bool nextVisible: (tooltipText.visible || tooltipIcon.visible) && (tooltip.mouseArea.containsMouse || tooltipMouseArea.containsMouse) | 119 | property bool iconVisible: tooltip.state.running || !tooltip.state.updating |
| 120 | property bool tooltipVisible: tooltip.state.state?.tooltip ?? false | ||
| 121 | |||
| 122 | property bool nextVisible: (tooltip.tooltipVisible || tooltip.iconVisible) && (tooltip.mouseArea.containsMouse || tooltipMouseArea.containsMouse) | ||
| 120 | 123 | ||
| 121 | anchor { | 124 | anchor { |
| 122 | item: tooltip.mouseArea | 125 | item: tooltip.mouseArea |
| @@ -169,7 +172,7 @@ Item { | |||
| 169 | implicitSize: 14 | 172 | implicitSize: 14 |
| 170 | anchors.verticalCenter: parent.verticalCenter | 173 | anchors.verticalCenter: parent.verticalCenter |
| 171 | 174 | ||
| 172 | visible: tooltip.state.running || !tooltip.state.updating | 175 | visible: tooltip.iconVisible |
| 173 | 176 | ||
| 174 | icon: tooltip.state.running ? "update" : "timer-off" | 177 | icon: tooltip.state.running ? "update" : "timer-off" |
| 175 | } | 178 | } |
| @@ -183,7 +186,7 @@ Item { | |||
| 183 | Text { | 186 | Text { |
| 184 | id: tooltipText | 187 | id: tooltipText |
| 185 | 188 | ||
| 186 | visible: tooltip.state.state?.tooltip ?? false | 189 | visible: tooltip.tooltipVisible |
| 187 | 190 | ||
| 188 | anchors.verticalCenter: parent.verticalCenter | 191 | anchors.verticalCenter: parent.verticalCenter |
| 189 | 192 | ||
