diff options
author | 2021-10-10 01:11:33 +0200 | |
---|---|---|
committer | 2021-10-31 19:26:09 +0100 | |
commit | 2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f (patch) | |
tree | 24f0b0bf8f8959ebcf0722456da2d6260c6f1421 /language-web/src/main/js/theme/ThemeStore.ts | |
parent | Merge pull request #7 from golej-marci/language-to-store (diff) | |
download | refinery-2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f.tar.gz refinery-2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f.tar.zst refinery-2ada4a06167b3a00a4c4c69e1b0c78b00ef1db5f.zip |
feat(web): add CodeMirror 6 editor
Diffstat (limited to 'language-web/src/main/js/theme/ThemeStore.ts')
-rw-r--r-- | language-web/src/main/js/theme/ThemeStore.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/language-web/src/main/js/theme/ThemeStore.ts b/language-web/src/main/js/theme/ThemeStore.ts index 3bbea3a1..db94d9f7 100644 --- a/language-web/src/main/js/theme/ThemeStore.ts +++ b/language-web/src/main/js/theme/ThemeStore.ts | |||
@@ -51,6 +51,10 @@ export class ThemeStore { | |||
51 | return responsiveFontSizes(materialUiTheme); | 51 | return responsiveFontSizes(materialUiTheme); |
52 | } | 52 | } |
53 | 53 | ||
54 | get darkMode(): boolean { | ||
55 | return this.currentThemeData.paletteMode === 'dark'; | ||
56 | } | ||
57 | |||
54 | get className(): string { | 58 | get className(): string { |
55 | return this.currentThemeData.className; | 59 | return this.currentThemeData.className; |
56 | } | 60 | } |