From 24b313497f22f837577371675c145ba9b51d7ee5 Mon Sep 17 00:00:00 2001 From: Bora Gülerman <49169566+eratoriele@users.noreply.github.com> Date: Wed, 26 Nov 2025 07:45:49 +0300 Subject: bar: add config option to disable on selected screens (#920) * modules/drawers: Added a bar config option to disable the bar on selected screens Extended the visualizer on screens that the bar is hidden * modules/drawers: surrounded barwrapper with a loader * fix/modules/drawers: fix a null reference missed to fix a reference to bar object to barLoader.item * modules/drawers: added regex support also reverted the barLoader, added a disabled property to BarLoader instead * fix: module/drawers: applied requested changes --- modules/drawers/Drawers.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/drawers') diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 2ba79a4..9fc38bd 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -18,6 +18,20 @@ Variants { id: scope required property ShellScreen modelData + readonly property bool barDisabled: { + const regexChecker = /^\^.*\$$/; + for (const filter of Config.bar.excludedScreens) { + // If filter is a regex + if (regexChecker.test(filter)) { + if ((new RegExp(filter)).test(modelData.name)) + return true; + } else { + if (filter === modelData.name) + return true; + } + } + return false; + } Exclusions { screen: scope.modelData @@ -169,6 +183,8 @@ Variants { visibilities: visibilities popouts: panels.popouts + disabled: scope.barDisabled + Component.onCompleted: Visibilities.bars.set(scope.modelData, this) } } -- cgit v1.2.3-freya