diff options
| author | Bora Gülerman <49169566+eratoriele@users.noreply.github.com> | 2025-11-26 07:45:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-26 15:45:49 +1100 |
| commit | 24b313497f22f837577371675c145ba9b51d7ee5 (patch) | |
| tree | 6cbbb9c45ef244a9c3443ada52af3e3ac0684882 /modules/bar | |
| parent | bar/activewindow: add option to invert rotate (#922) (diff) | |
| download | caelestia-shell-24b313497f22f837577371675c145ba9b51d7ee5.tar.gz caelestia-shell-24b313497f22f837577371675c145ba9b51d7ee5.tar.bz2 caelestia-shell-24b313497f22f837577371675c145ba9b51d7ee5.zip | |
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
Diffstat (limited to 'modules/bar')
| -rw-r--r-- | modules/bar/BarWrapper.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/bar/BarWrapper.qml b/modules/bar/BarWrapper.qml index b496cfd..29961b6 100644 --- a/modules/bar/BarWrapper.qml +++ b/modules/bar/BarWrapper.qml @@ -12,11 +12,12 @@ Item { required property ShellScreen screen required property PersistentProperties visibilities required property BarPopouts.Wrapper popouts + required property bool disabled readonly property int padding: Math.max(Appearance.padding.smaller, Config.border.thickness) readonly property int contentWidth: Config.bar.sizes.innerWidth + padding * 2 - readonly property int exclusiveZone: Config.bar.persistent || visibilities.bar ? contentWidth : Config.border.thickness - readonly property bool shouldBeVisible: Config.bar.persistent || visibilities.bar || isHovered + readonly property int exclusiveZone: !disabled && (Config.bar.persistent || visibilities.bar) ? contentWidth : Config.border.thickness + readonly property bool shouldBeVisible: !disabled && (Config.bar.persistent || visibilities.bar || isHovered) property bool isHovered function closeTray(): void { |