1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-19 09:35:22 -04:00

refactor(settings): colors & cleanup

This commit is contained in:
purian23
2026-06-17 00:32:58 -04:00
parent 68410e882d
commit 820a9ce983
5 changed files with 60 additions and 44 deletions
+13 -1
View File
@@ -1562,7 +1562,7 @@ Item {
}
}
WorkspaceColorRow {
ColorDropdownRow {
tab: "theme"
tags: ["widget", "background", "color", "surface", "material"]
settingKey: "widgetBackgroundColor"
@@ -1607,6 +1607,12 @@ Item {
text: I18n.tr("Control Center Tile Color")
description: I18n.tr("Active tile background and icon color", "control center tile color setting description")
options: [I18n.tr("Primary", "tile color option"), I18n.tr("Primary Container", "tile color option"), I18n.tr("Secondary", "tile color option"), I18n.tr("Surface Variant", "tile color option")]
optionColorMap: ({
[I18n.tr("Primary", "tile color option")]: Theme.roleColor("primary"),
[I18n.tr("Primary Container", "tile color option")]: Theme.roleColor("primaryContainer"),
[I18n.tr("Secondary", "tile color option")]: Theme.roleColor("secondary"),
[I18n.tr("Surface Variant", "tile color option")]: Theme.roleColor("surfaceVariant")
})
currentValue: {
switch (SettingsData.controlCenterTileColorMode) {
case "primaryContainer":
@@ -1639,6 +1645,12 @@ Item {
text: I18n.tr("Button Color")
description: I18n.tr("Color for primary action buttons")
options: [I18n.tr("Primary", "button color option"), I18n.tr("Primary Container", "button color option"), I18n.tr("Secondary", "button color option"), I18n.tr("Surface Variant", "button color option")]
optionColorMap: ({
[I18n.tr("Primary", "button color option")]: Theme.roleColor("primary"),
[I18n.tr("Primary Container", "button color option")]: Theme.roleColor("primaryContainer"),
[I18n.tr("Secondary", "button color option")]: Theme.roleColor("secondary"),
[I18n.tr("Surface Variant", "button color option")]: Theme.roleColor("surfaceVariant")
})
currentValue: {
switch (SettingsData.buttonColorMode) {
case "primaryContainer":