feat(app): add configurable global background wallpaper
This commit is contained in:
1 parent
5fb667716f
commit
39aa663ebf
28 files changed
+1240
-1
No files matched your search
@@ -740,6 +740,27 @@ export async function saveEditorSettings(settings: unknown): Promise<void> {
|
||||
return invoke("save_editor_settings", { settings });
|
||||
}
|
||||
|
||||
export interface BackgroundImageInfo {
|
||||
storedPath: string;
|
||||
fileName: string;
|
||||
}
|
||||
|
||||
export async function saveBackgroundImage(sourcePath: string): Promise<BackgroundImageInfo> {
|
||||
return invoke("save_background_image", { sourcePath });
|
||||
}
|
||||
|
||||
export async function clearBackgroundImage(storedPath: string): Promise<void> {
|
||||
return invoke("clear_background_image", { storedPath });
|
||||
}
|
||||
|
||||
export async function readBackgroundImage(storedPath: string): Promise<string> {
|
||||
return invoke("read_background_image", { storedPath });
|
||||
}
|
||||
|
||||
export async function checkBackgroundImage(storedPath: string): Promise<boolean> {
|
||||
return invoke("check_background_image", { storedPath });
|
||||
}
|
||||
|
||||
export async function loadOpenTabsState(): Promise<OpenTabsStatePayload | null> {
|
||||
return invoke("load_open_tabs_state");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user