From 0abce483e831ef44ff16132231bec5f178e6f5f5 Mon Sep 17 00:00:00 2001 From: Binary Date: Fri, 17 Jan 2025 23:25:44 -0400 Subject: [PATCH] fix to default color theme --- manifest.json | 2 +- src/settings/settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 2a65415..c66f40f 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/src/settings/settings.ts b/src/settings/settings.ts index 369c75f..d37f554 100644 --- a/src/settings/settings.ts +++ b/src/settings/settings.ts @@ -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();