begin theme scaffolding

This commit is contained in:
SpikeHD
2022-06-02 17:37:01 -07:00
parent 203c45c5ef
commit cdd15123dc

24
src/utils/themes.ts Normal file
View File

@@ -0,0 +1,24 @@
import { invoke } from "@tauri-apps/api"
interface Theme {
name: string
version: string
description: string
// Included custom CSS and JS files
includes: {
css: string[]
js: string[]
}
customBackgroundURL?: string
customBackgroundPath?: string
}
export async function getThemeList() {
// Do some invoke to backend to get the theme list
}
export async function loadTheme() {
// Do some invoke to backend to load the theme
}