chore: add volume slider

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
HorizonCodeandCopilot committed 2026-05-02 22:15:39 +02:00
1 parent adf607e24c
commit 3900b5c6cf
7 files changed
+183 -24

No files matched your search

+2 -2
View File
@@ -269,7 +269,7 @@ export const downloadTheme = async (theme: Theme, force = false): Promise<boolea
return true;
};
export const loadTheme = async (theme: Theme, themeContainer: HTMLElement) => {
export const loadTheme = async (theme: Theme, themeContainer: HTMLElement, volume = 0.15) => {
active_custom_theme.set(theme);
themeContainer.innerHTML = '';
if (theme.scriptUrl.length > 0) {
@@ -277,7 +277,7 @@ export const loadTheme = async (theme: Theme, themeContainer: HTMLElement) => {
/* @vite-ignore */
themeScript.mountTheme(themeContainer, { assets: theme.assets });
}
setGlobalVolume(0.15);
setGlobalVolume(volume);
};
export const deleteTheme = async (themeToUninstall: Theme) => {