mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-14 09:42:10 -04:00
dankbar: fix syncing settings to new bars
This commit is contained in:
@@ -575,7 +575,7 @@ Singleton {
|
|||||||
"maximizeWidgetIcons": false,
|
"maximizeWidgetIcons": false,
|
||||||
"maximizeWidgetText": false,
|
"maximizeWidgetText": false,
|
||||||
"removeWidgetPadding": false,
|
"removeWidgetPadding": false,
|
||||||
"widgetPadding": 12,
|
"widgetPadding": 8,
|
||||||
"gothCornersEnabled": false,
|
"gothCornersEnabled": false,
|
||||||
"gothCornerRadiusOverride": false,
|
"gothCornerRadiusOverride": false,
|
||||||
"gothCornerRadiusValue": 12,
|
"gothCornerRadiusValue": 12,
|
||||||
|
|||||||
@@ -398,7 +398,7 @@ var SPEC = {
|
|||||||
maximizeWidgetIcons: false,
|
maximizeWidgetIcons: false,
|
||||||
maximizeWidgetText: false,
|
maximizeWidgetText: false,
|
||||||
removeWidgetPadding: false,
|
removeWidgetPadding: false,
|
||||||
widgetPadding: 12,
|
widgetPadding: 8,
|
||||||
gothCornersEnabled: false,
|
gothCornersEnabled: false,
|
||||||
gothCornerRadiusOverride: false,
|
gothCornerRadiusOverride: false,
|
||||||
gothCornerRadiusValue: 12,
|
gothCornerRadiusValue: 12,
|
||||||
|
|||||||
@@ -92,7 +92,12 @@ Item {
|
|||||||
widgetOutlineColor: defaultBar.widgetOutlineColor || "primary",
|
widgetOutlineColor: defaultBar.widgetOutlineColor || "primary",
|
||||||
widgetOutlineOpacity: defaultBar.widgetOutlineOpacity ?? 1.0,
|
widgetOutlineOpacity: defaultBar.widgetOutlineOpacity ?? 1.0,
|
||||||
widgetOutlineThickness: defaultBar.widgetOutlineThickness ?? 1,
|
widgetOutlineThickness: defaultBar.widgetOutlineThickness ?? 1,
|
||||||
|
widgetPadding: defaultBar.widgetPadding ?? 12,
|
||||||
|
maximizeWidgetIcons: defaultBar.maximizeWidgetIcons ?? false,
|
||||||
|
maximizeWidgetText: defaultBar.maximizeWidgetText ?? false,
|
||||||
|
removeWidgetPadding: defaultBar.removeWidgetPadding ?? false,
|
||||||
fontScale: defaultBar.fontScale ?? 1.0,
|
fontScale: defaultBar.fontScale ?? 1.0,
|
||||||
|
iconScale: defaultBar.iconScale ?? 1.0,
|
||||||
autoHide: defaultBar.autoHide ?? false,
|
autoHide: defaultBar.autoHide ?? false,
|
||||||
autoHideDelay: defaultBar.autoHideDelay ?? 250,
|
autoHideDelay: defaultBar.autoHideDelay ?? 250,
|
||||||
showOnWindowsOpen: defaultBar.showOnWindowsOpen ?? false,
|
showOnWindowsOpen: defaultBar.showOnWindowsOpen ?? false,
|
||||||
@@ -589,7 +594,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
autoHideDelay: newValue
|
autoHideDelay: newValue
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -609,7 +613,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
showOnWindowsOpen: toggled
|
showOnWindowsOpen: toggled
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -663,7 +666,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
openOnOverview: toggled
|
openOnOverview: toggled
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -780,7 +782,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
spacing: finalValue
|
spacing: finalValue
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -802,7 +803,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
bottomGap: finalValue
|
bottomGap: finalValue
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -824,7 +824,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
innerPadding: finalValue
|
innerPadding: finalValue
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -873,7 +872,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
popupGapsAuto: checked
|
popupGapsAuto: checked
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -902,7 +900,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
popupGapsManual: finalValue
|
popupGapsManual: finalValue
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -1343,7 +1340,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
transparency: finalValue / 100
|
transparency: finalValue / 100
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -1366,7 +1362,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
widgetTransparency: finalValue / 100
|
widgetTransparency: finalValue / 100
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -1393,7 +1388,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
fontScale: finalValue / 100
|
fontScale: finalValue / 100
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
@@ -1419,7 +1413,6 @@ Item {
|
|||||||
SettingsData.updateBarConfig(selectedBarId, {
|
SettingsData.updateBarConfig(selectedBarId, {
|
||||||
iconScale: finalValue / 100
|
iconScale: finalValue / 100
|
||||||
});
|
});
|
||||||
notifyHorizontalBarChange();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
|
|||||||
Reference in New Issue
Block a user