diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/bar/Bar.qml | 6 | ||||
| -rw-r--r-- | modules/bar/popouts/Content.qml | 8 |
2 files changed, 7 insertions, 7 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; diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index 5c9fdf7..e3f569d 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -45,7 +45,7 @@ Item { Popout { name: "battery" - source: "Battery.qml" + sourceComponent: Battery {} } Popout { @@ -57,12 +57,12 @@ Item { Popout { name: "kblayout" - source: "KbLayout.qml" + sourceComponent: KbLayout {} } Popout { name: "lockstatus" - source: "LockStatus.qml" + sourceComponent: LockStatus {} } Repeater { @@ -106,7 +106,7 @@ Item { id: popout required property string name - property bool shouldBeActive: root.wrapper.currentName === name + readonly property bool shouldBeActive: root.wrapper.currentName === name anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right |