1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

dankbar: layer enabled false + binding tweak

This commit is contained in:
bbedward
2026-02-25 10:45:08 -05:00
parent cded5a7948
commit 1586c25847
2 changed files with 11 additions and 6 deletions

View File

@@ -624,7 +624,7 @@ PanelWindow {
Item {
id: topBarCore
anchors.fill: parent
layer.enabled: true
layer.enabled: false
property bool autoHide: barConfig?.autoHide ?? false
property bool revealSticky: false

View File

@@ -29,12 +29,21 @@ Loader {
readonly property bool orientationMatches: (axis?.isVertical ?? false) === isInColumn
readonly property bool widgetEnabled: widgetData?.enabled !== false
active: orientationMatches && getWidgetVisible(widgetId, DgopService.dgopAvailable) && (widgetId !== "music" || MprisController.activePlayer !== null)
sourceComponent: getWidgetComponent(widgetId, components)
opacity: getWidgetEnabled(widgetData?.enabled) ? 1 : 0
signal contentItemReady(var item)
Binding {
target: root.item
when: root.item && !root.widgetEnabled
property: "visible"
value: false
restoreMode: Binding.RestoreBinding
}
Binding {
target: root.item
when: root.item && "parentScreen" in root.item
@@ -269,8 +278,4 @@ Loader {
return widgetVisibility[widgetId] ?? true;
}
function getWidgetEnabled(enabled) {
return enabled !== false;
}
}