diff options
Diffstat (limited to 'services/Colours.qml')
| -rw-r--r-- | services/Colours.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/Colours.qml b/services/Colours.qml index 53ca90e..3a26e84 100644 --- a/services/Colours.qml +++ b/services/Colours.qml @@ -12,6 +12,8 @@ Singleton { readonly property list<string> colourNames: ["rosewater", "flamingo", "pink", "mauve", "red", "maroon", "peach", "yellow", "green", "teal", "sky", "sapphire", "blue", "lavender"] property bool showPreview + property string scheme + property string flavour property bool light readonly property Colours palette: showPreview ? preview : current readonly property Colours current: Colours {} @@ -37,6 +39,11 @@ Singleton { const colours = isPreview ? preview : current; const scheme = JSON.parse(data); + if (!isPreview) { + root.scheme = scheme.name; + flavour = scheme.flavour; + } + light = scheme.mode === "light"; for (const [name, colour] of Object.entries(scheme.colours)) { |