Rework theme provider to provide the actual Theme object throughtout the app, in addition to the name

Split name out of the Theme struct to simplify custom theme saving/reading
This commit is contained in:
Michael Landry 2025-09-28 08:01:54 -04:00 committed by Gabe Farrell
parent 517cc8ac28
commit 621ca63b6b
2 changed files with 35 additions and 0 deletions

View file

@ -5,7 +5,11 @@ import ThemeOption from './ThemeOption';
import { AsyncButton } from '../AsyncButton';
export function ThemeSwitcher() {
<<<<<<< HEAD
const { setTheme } = useTheme();
=======
const { theme, themeName, setTheme } = useTheme();
>>>>>>> fbaa6a6 (Rework theme provider to provide the actual Theme object throughtout the app, in addition to the name)
const initialTheme = {
bg: "#1e1816",
bgSecondary: "#2f2623",