Skip to content

Commit

Permalink
fix: ui atom init value
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 1, 2024
1 parent 48e73d7 commit 9f1d8c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/renderer/src/atoms/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ const createDefaultSettings = () => ({
readerRenderInlineStyle: false,
codeHighlightTheme: "github-dark",
})
const atom = atomWithStorage(getStorageNS("ui"), createDefaultSettings())
const atom = atomWithStorage(
getStorageNS("ui"),
createDefaultSettings(),
undefined,
{
getOnInit: true,
},
)
const [, , useUISettingValue, , getUISettings, setUISettings] =
createAtomHooks(atom)

Expand Down
3 changes: 2 additions & 1 deletion src/renderer/src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ body,
}

:focus-visible {
outline: theme(colors.theme.accent.DEFAULT) auto 1px;
/* outline: theme(colors.theme.accent.DEFAULT) auto 1px; */
outline: none;
}

button,
Expand Down

0 comments on commit 9f1d8c0

Please sign in to comment.