mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
dankbar: try something else for binding
This commit is contained in:
@@ -120,10 +120,7 @@ Item {
|
|||||||
delegate: Loader {
|
delegate: Loader {
|
||||||
id: barLoader
|
id: barLoader
|
||||||
required property var modelData
|
required property var modelData
|
||||||
property var barConfig: {
|
property var barConfig: SettingsData.barConfigs.find(cfg => cfg.id === modelData.id) || null
|
||||||
SettingsData.barConfigs;
|
|
||||||
return SettingsData.getBarConfig(modelData.id);
|
|
||||||
}
|
|
||||||
active: barConfig?.enabled ?? false
|
active: barConfig?.enabled ?? false
|
||||||
asynchronous: false
|
asynchronous: false
|
||||||
|
|
||||||
|
|||||||
@@ -479,6 +479,15 @@ PanelWindow {
|
|||||||
target: rootWindow
|
target: rootWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: SettingsData
|
||||||
|
function onBarConfigsChanged() {
|
||||||
|
Qt.callLater(() => {
|
||||||
|
topBarCore.backgroundTransparency = barConfig?.transparency ?? 1.0;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function evaluateReveal() {
|
function evaluateReveal() {
|
||||||
if (!autoHide)
|
if (!autoHide)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user