mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
theme selector fixed
This commit is contained in:
@@ -4,12 +4,13 @@ import { useTheme } from "vuetify";
|
||||
import { themes } from "@/styles/themes.js";
|
||||
|
||||
// Props
|
||||
const theme = useTheme();
|
||||
const selectedTheme = ref(localStorage.getItem("theme"));
|
||||
|
||||
// Functions
|
||||
function toggleTheme() {
|
||||
localStorage.setItem("theme", selectedTheme.value);
|
||||
useTheme().global.name.value = themes[selectedTheme.value];
|
||||
theme.global.name.value = themes[selectedTheme.value];
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user