We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d404139 commit 8908638Copy full SHA for 8908638
packages/app-desktop/src/lib/api/theme.ts
@@ -1,6 +1,7 @@
1
import { Theme } from "@darkwrite/common";
2
3
-const API = window.newApi.theme;
+// TODO: use a class
4
+//const API = window.newApi.theme;
5
6
export interface IThemesModel {
7
getUserThemes: () => Promise<Theme[]>;
@@ -9,7 +10,7 @@ export interface IThemesModel {
9
10
}
11
12
export const ThemesModel: IThemesModel = {
- getUserThemes: () => API.load(),
13
- importTheme: () => API.import(),
14
- getSystemAccentColor: () => API.getAccentColor(),
+ getUserThemes: () => window.newApi.theme.load(),
+ importTheme: () => window.newApi.theme.import(),
15
+ getSystemAccentColor: () => window.newApi.theme.getAccentColor(),
16
};
0 commit comments