Skip to content

Commit ff3f2ea

Browse files
fix. statusbar colors
1 parent d72dd7e commit ff3f2ea

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/theme/list.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ export async function apply(id, init) {
9595

9696
if (init && theme.preferredEditorTheme) {
9797
update.editorTheme = theme.preferredEditorTheme;
98-
editorManager.editor.setTheme(theme.preferredEditorTheme);
98+
if (editorManager != null && editorManager.editor != null) {
99+
editorManager.editor.setTheme(theme.preferredEditorTheme);
100+
}
101+
99102
}
100103

101104
if (init && theme.preferredFont) {

src/theme/preInstalled.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import appSettings from "lib/settings";
33
import { isDeviceDarkTheme } from "lib/systemConfiguration";
44
import { createBuiltInTheme } from "./builder";
55
import { apply, update } from "./list";
6+
import color from "utils/color";
67

78
const WHITE = "rgb(255, 255, 255)";
89
const BLACK = "rgb(0, 0, 0)";
@@ -187,7 +188,9 @@ export function updateSystemTheme(darkTheme) {
187188
system.popupBackgroundColor = "rgb(49, 49, 49)";
188189
system.popupTextColor = WHITE;
189190
system.popupActiveColor = "rgb(255, 215, 0)";
191+
system.type = "dark"
190192
} else {
193+
system.type = "light"
191194
system.darkenedPrimaryColor = "rgb(153, 153, 153)";
192195
system.primaryColor = WHITE;
193196
system.primaryTextColor = "rgb(51, 62, 89)";
@@ -206,7 +209,7 @@ export function updateSystemTheme(darkTheme) {
206209
}
207210

208211
if (appSettings.value.appTheme.toLowerCase() === "system") {
209-
apply(system.id, true);
212+
apply(system.id, true);
210213
}
211214
}
212215

0 commit comments

Comments
 (0)