update ThemeManager

This commit is contained in:
Halit Aksoy 2022-07-13 15:40:54 +03:00
parent a4bbad204d
commit cbf719b1e2

View File

@ -1,10 +1,9 @@
import darkGreyTheme from "./DarkGrey"; import lightTheme from "./LightTheme";
import darkTheme from "./DarkTheme"; import greyTheme from "./GreyTheme";
import defaultTheme from "./DefaultTheme";
import oldTheme from "./OldTheme";
import { Theme } from "./Theme"; import { Theme } from "./Theme";
import darkTheme from "./DarkTheme";
export const themes = [defaultTheme, darkGreyTheme, darkTheme, oldTheme]; export const themes = [lightTheme, darkTheme, greyTheme];
const THEME_ID = "theme_id"; const THEME_ID = "theme_id";
@ -12,7 +11,7 @@ export default class ThemeManager {
_theme: Theme; _theme: Theme;
onThemeChange: (theme: Theme) => void; onThemeChange: (theme: Theme) => void;
constructor() { constructor() {
this._theme = this.readFromLocalStorage() || defaultTheme; this._theme = this.readFromLocalStorage() || lightTheme;
} }
public get theme() { public get theme() {