ColorSchemeTab: add matugen type option

This commit is contained in:
Ly-sec
2025-09-27 17:16:00 +02:00
parent 65cd95c62b
commit 35bf30ef5e
9 changed files with 72 additions and 4 deletions
+43
View File
@@ -140,6 +140,49 @@ ColumnLayout {
}
}
// Matugen Scheme Type Selection
NComboBox {
label: I18n.tr("settings.color-scheme.color-source.matugen-scheme-type.label")
description: I18n.tr("settings.color-scheme.color-source.matugen-scheme-type.description")
enabled: Settings.data.colorSchemes.useWallpaperColors
opacity: Settings.data.colorSchemes.useWallpaperColors ? 1.0 : 0.6
model: [{
"key": "scheme-content",
"name": "Content"
}, {
"key": "scheme-expressive",
"name": "Expressive"
}, {
"key": "scheme-fidelity",
"name": "Fidelity"
}, {
"key": "scheme-fruit-salad",
"name": "Fruit Salad"
}, {
"key": "scheme-monochrome",
"name": "Monochrome"
}, {
"key": "scheme-neutral",
"name": "Neutral"
}, {
"key": "scheme-rainbow",
"name": "Rainbow"
}, {
"key": "scheme-tonal-spot",
"name": "Tonal Spot"
}]
currentKey: Settings.data.colorSchemes.matugenSchemeType
onSelected: key => {
Settings.data.colorSchemes.matugenSchemeType = key
if (Settings.data.colorSchemes.useWallpaperColors) {
MatugenService.generateFromWallpaper()
}
}
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL * scaling