diff options
Diffstat (limited to 'config/Appearance.qml')
| -rw-r--r-- | config/Appearance.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/Appearance.qml b/config/Appearance.qml index cf511d1..99b0525 100644 --- a/config/Appearance.qml +++ b/config/Appearance.qml @@ -31,11 +31,14 @@ Singleton { onFileChanged: this.reload() onLoaded: { const contents = this.text(); + const colours = root.colours; for (const line of contents.split("\n")) { let [name, colour] = line.split(" "); name = name.trim(); - root.colours[colourNames.includes(name) ? name : `m3${name}`] = `#${colour.trim()}`; + name = colourNames.includes(name) ? name : `m3${name}`; + if (colours.hasOwnProperty(name)) + colours[name] = `#${colour.trim()}`; } } } |