tui: add reload functionality and improve lazy utility with reset capability
This commit is contained in:
parent
d60393835c
commit
389a5fc017
5 changed files with 44 additions and 20 deletions
|
|
@ -283,6 +283,12 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
|
|||
ready: false,
|
||||
})
|
||||
|
||||
createEffect(() => {
|
||||
const theme = sync.data.config.theme
|
||||
console.log("theme", theme)
|
||||
if (theme) setStore("active", theme)
|
||||
})
|
||||
|
||||
createEffect(() => {
|
||||
getCustomThemes()
|
||||
.then((custom) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue