Settings UI for color scheme presets
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import Quickshell.Io
|
||||
|
||||
JsonObject {
|
||||
property Presets presets: Presets {
|
||||
}
|
||||
property string schemeType: "vibrant"
|
||||
|
||||
component Presets: JsonObject {
|
||||
property string accent: ""
|
||||
property string name: ""
|
||||
property string variant: ""
|
||||
}
|
||||
}
|
||||
|
||||
+6
-1
@@ -115,7 +115,12 @@ Singleton {
|
||||
|
||||
function serializeColors(): var {
|
||||
return {
|
||||
schemeType: colors.schemeType
|
||||
schemeType: colors.schemeType,
|
||||
presets: {
|
||||
name: colors.presets.name,
|
||||
variant: colors.presets.variant,
|
||||
accent: colors.presets.accent
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user