mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-12 08:50:40 -07:00
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:
parent
517cc8ac28
commit
621ca63b6b
2 changed files with 35 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue