From 202cf4bcc927a5a0677a7a4cebe17ad5ba15f695 Mon Sep 17 00:00:00 2001 From: bbedward Date: Sat, 29 Nov 2025 22:43:55 -0500 Subject: [PATCH] dankbar: try something else for binding --- quickshell/DMSShell.qml | 5 +---- quickshell/Modules/DankBar/DankBarWindow.qml | 9 +++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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;