summaryrefslogtreecommitdiff
path: root/modules/bar/Bar.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-21 19:40:34 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-10-21 19:40:34 +1100
commit58ac60c47c9ea44665ea0e7814562a6933721aaf (patch)
treecf381d577c9b2a10dd60525a1ba7331d39a702c3 /modules/bar/Bar.qml
parentinternal: fix serviceref lsp warning (diff)
downloadcaelestia-shell-58ac60c47c9ea44665ea0e7814562a6933721aaf.tar.gz
caelestia-shell-58ac60c47c9ea44665ea0e7814562a6933721aaf.tar.bz2
caelestia-shell-58ac60c47c9ea44665ea0e7814562a6933721aaf.zip
bar/popouts: allow disabling individual popouts
Closes #826
Diffstat (limited to 'modules/bar/Bar.qml')
-rw-r--r--modules/bar/Bar.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml
index 64b1d86..1dceea4 100644
--- a/modules/bar/Bar.qml
+++ b/modules/bar/Bar.qml
@@ -45,7 +45,7 @@ ColumnLayout {
const item = ch.item;
const itemHeight = item.implicitHeight;
- if (id === "statusIcons") {
+ if (id === "statusIcons" && Config.bar.popouts.statusIcons) {
const items = item.items;
const icon = items.childAt(items.width / 2, mapToItem(items, 0, y).y);
if (icon) {
@@ -53,7 +53,7 @@ ColumnLayout {
popouts.currentCenter = Qt.binding(() => icon.mapToItem(root, 0, icon.implicitHeight / 2).y);
popouts.hasCurrent = true;
}
- } else if (id === "tray") {
+ } else if (id === "tray" && Config.bar.popouts.tray) {
if (!Config.bar.tray.compact || (item.expanded && !item.expandIcon.contains(mapToItem(item.expandIcon, item.implicitWidth / 2, y)))) {
const index = Math.floor(((y - top - item.padding * 2 + item.spacing) / item.layout.implicitHeight) * item.items.count);
const trayItem = item.items.itemAt(index);
@@ -68,7 +68,7 @@ ColumnLayout {
popouts.hasCurrent = false;
item.expanded = true;
}
- } else if (id === "activeWindow") {
+ } else if (id === "activeWindow" && Config.bar.popouts.activeWindow) {
popouts.currentName = id.toLowerCase();
popouts.currentCenter = item.mapToItem(root, 0, itemHeight / 2).y;
popouts.hasCurrent = true;