summaryrefslogtreecommitdiff
path: root/modules/bar/components
diff options
context:
space:
mode:
authorEvertiro <dgriffiths@widgitlabs.com>2026-03-08 04:33:31 -0500
committerGitHub <noreply@github.com>2026-03-08 20:33:31 +1100
commit5bde26496e0394cd7267966adb08e56c304bc24e (patch)
tree03320ec280ac68010dac8038575405f24855323f /modules/bar/components
parentpicker: fix large screenshot not opening/copying to clipboard (#1250) (diff)
downloadcaelestia-shell-5bde26496e0394cd7267966adb08e56c304bc24e.tar.gz
caelestia-shell-5bde26496e0394cd7267966adb08e56c304bc24e.tar.bz2
caelestia-shell-5bde26496e0394cd7267966adb08e56c304bc24e.zip
bar: allow hiding tray icons (#1227)
* First pass at hiding systray icons Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * Don't dump all IDs for no reason >_< Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * Better handling for hiding tray icons Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * Re-add EOF newline Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * Hide popouts too Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * Hide the expand icon if no icons are visible Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * Update modules/bar/components/Tray.qml Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> * Update modules/bar/components/Tray.qml Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> * Update modules/bar/components/Tray.qml Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> * That needs to be inverted * Clean up Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> * fix --------- Signed-off-by: Dan Griffiths <dgriffiths@widgitlabs.com> Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'modules/bar/components')
-rw-r--r--modules/bar/components/Tray.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml
index 96956f6..7bafda1 100644
--- a/modules/bar/components/Tray.qml
+++ b/modules/bar/components/Tray.qml
@@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import qs.components
import qs.services
import qs.config
+import Quickshell
import Quickshell.Services.SystemTray
import QtQuick
@@ -66,7 +67,9 @@ StyledRect {
Repeater {
id: items
- model: SystemTray.items
+ model: ScriptModel {
+ values: SystemTray.items.values.filter(i => !Config.bar.tray.hiddenIcons.includes(i.id))
+ }
TrayItem {}
}
@@ -82,7 +85,7 @@ StyledRect {
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
- active: Config.bar.tray.compact
+ active: Config.bar.tray.compact && items.count > 0
sourceComponent: Item {
implicitWidth: expandIconInner.implicitWidth