fix to default color theme

This commit is contained in:
Binary 2025-01-17 23:25:44 -04:00
parent 09dd632924
commit 0abce483e8
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"id": "bin-theme-controller",
"name": "Theme Controller",
"version": "1.0.3",
"version": "1.0.4",
"minAppVersion": "0.15.0",
"description": "Set when and how the themes will be displayed.",
"author": "Binaris",

View file

@ -364,7 +364,7 @@ export class ThControlSettingTab extends PluginSettingTab {
dropDown.addOption("Light", "Light")
dropDown.addOption("Dark", "Dark")
dropDown.setValue("Dark")
dropDown.setValue(this.plugin.settings.defaultColor === true ? "Dark" : "Light")
dropDown.onChange(async (value) => {
this.plugin.settings.defaultColor = value.toLowerCase() === "dark" ? true : false
await this.plugin.saveSettings();