mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat(web): implement open skin layouts and migrate Illusia
This commit is contained in:
1 parent
58559cf839
commit
02441410a0
60 files changed
+6511
-50
No files matched your search
@@ -65,9 +65,9 @@ export function applyTheme(theme: ThemeMode, options: { preserveCustomSkins?: bo
|
||||
style.textContent = activeSkin.css;
|
||||
}
|
||||
|
||||
export function saveTheme(theme: ThemeMode): void {
|
||||
export function saveTheme(theme: ThemeMode, options: { preserveCustomSkins?: boolean } = {}): void {
|
||||
if (typeof localStorage !== "undefined") localStorage.setItem(THEME_KEY, theme);
|
||||
applyTheme(theme);
|
||||
applyTheme(theme, options);
|
||||
}
|
||||
|
||||
export function isDarkTheme(theme: ThemeMode): boolean {
|
||||
|
||||
Reference in new issue
Block a user