fix: temporarily lock tasker dark theme

This commit is contained in:
DCCONSTRUCTIONS
2026-05-23 10:32:04 +03:00
parent 3f86b73d5c
commit 6e74964853
10 changed files with 126 additions and 66 deletions
+8 -2
View File
@@ -4,7 +4,9 @@
* See the LICENSE file for details.
*/
export const THEMES = ["light", "dark", "light-contrast", "dark-contrast", "custom"];
export const NODEDC_FORCED_THEME = "dark";
export const NODEDC_THEME_LOCK_ENABLED = true;
export const THEMES = ["light", NODEDC_FORCED_THEME, "light-contrast", "dark-contrast", "custom"];
export interface I_THEME_OPTION {
key: string;
@@ -43,7 +45,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
},
{
key: "dark",
value: "dark",
value: NODEDC_FORCED_THEME,
i18n_label: "Dark",
type: "dark",
icon: {
@@ -86,3 +88,7 @@ export const THEME_OPTIONS: I_THEME_OPTION[] = [
},
},
];
export const NODEDC_ACTIVE_THEME_OPTIONS = NODEDC_THEME_LOCK_ENABLED
? THEME_OPTIONS.filter((themeOption) => themeOption.value === NODEDC_FORCED_THEME)
: THEME_OPTIONS;