mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
begin theme scaffolding
This commit is contained in:
24
src/utils/themes.ts
Normal file
24
src/utils/themes.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user