diff --git a/quickshell/DMSShell.qml b/quickshell/DMSShell.qml index 5705b3ac..c873fff1 100644 --- a/quickshell/DMSShell.qml +++ b/quickshell/DMSShell.qml @@ -120,10 +120,7 @@ Item { delegate: Loader { id: barLoader required property var modelData - property var barConfig: { - SettingsData.barConfigs; - return SettingsData.getBarConfig(modelData.id); - } + property var barConfig: SettingsData.barConfigs.find(cfg => cfg.id === modelData.id) || null active: barConfig?.enabled ?? false asynchronous: false diff --git a/quickshell/Modules/DankBar/DankBarWindow.qml b/quickshell/Modules/DankBar/DankBarWindow.qml index b08d75e7..e90dbcc3 100644 --- a/quickshell/Modules/DankBar/DankBarWindow.qml +++ b/quickshell/Modules/DankBar/DankBarWindow.qml @@ -479,6 +479,15 @@ PanelWindow { target: rootWindow } + Connections { + target: SettingsData + function onBarConfigsChanged() { + Qt.callLater(() => { + topBarCore.backgroundTransparency = barConfig?.transparency ?? 1.0; + }); + } + } + function evaluateReveal() { if (!autoHide) return;