Skip to content

Commit 7498b53

Browse files
format
1 parent ff3f2ea commit 7498b53

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/theme/list.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ export async function apply(id, init) {
9797
update.editorTheme = theme.preferredEditorTheme;
9898
if (editorManager != null && editorManager.editor != null) {
9999
editorManager.editor.setTheme(theme.preferredEditorTheme);
100-
}
101-
100+
}
102101
}
103102

104103
if (init && theme.preferredFont) {

src/theme/preInstalled.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import restoreTheme from "lib/restoreTheme";
22
import appSettings from "lib/settings";
33
import { isDeviceDarkTheme } from "lib/systemConfiguration";
4+
import color from "utils/color";
45
import { createBuiltInTheme } from "./builder";
56
import { apply, update } from "./list";
6-
import color from "utils/color";
77

88
const WHITE = "rgb(255, 255, 255)";
99
const BLACK = "rgb(0, 0, 0)";
@@ -188,9 +188,9 @@ export function updateSystemTheme(darkTheme) {
188188
system.popupBackgroundColor = "rgb(49, 49, 49)";
189189
system.popupTextColor = WHITE;
190190
system.popupActiveColor = "rgb(255, 215, 0)";
191-
system.type = "dark"
191+
system.type = "dark";
192192
} else {
193-
system.type = "light"
193+
system.type = "light";
194194
system.darkenedPrimaryColor = "rgb(153, 153, 153)";
195195
system.primaryColor = WHITE;
196196
system.primaryTextColor = "rgb(51, 62, 89)";
@@ -209,7 +209,7 @@ export function updateSystemTheme(darkTheme) {
209209
}
210210

211211
if (appSettings.value.appTheme.toLowerCase() === "system") {
212-
apply(system.id, true);
212+
apply(system.id, true);
213213
}
214214
}
215215

0 commit comments

Comments
 (0)