Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const viewport: Viewport = {
// other forbidden characters), which makes classList.add throw
// InvalidCharacterError. The catch then swallows the throw and the
// dark class never lands, reintroducing the light flash.
const themeInitScript = `(function(){try{var t=localStorage.getItem('quorum_theme')||'dark';if(t==='github')t='solarized';var a={light:1,solarized:1,dark:1,tokyonight:1,lovelace:1,gruvbox:1,catppuccin:1,nord:1};if(!a[t])t='dark';var c=document.documentElement.classList;if(t!=='light'&&t!=='solarized'){c.add('dark');if(t!=='dark')c.add(t);}else if(t==='solarized'){c.add('solarized');}}catch(e){}})();`
const themeInitScript = `(function(){try{var t=localStorage.getItem('quorum_theme')||'tokyonight';if(t==='github')t='solarized';var a={light:1,solarized:1,dark:1,tokyonight:1,lovelace:1,gruvbox:1,catppuccin:1,nord:1};if(!a[t])t='tokyonight';var c=document.documentElement.classList;if(t!=='light'&&t!=='solarized'){c.add('dark');if(t!=='dark')c.add(t);}else if(t==='solarized'){c.add('solarized');}}catch(e){}})();`

export default function RootLayout({
children,
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function ChatPageContent() {
const [locale, setLocale] = useState<Locale>("ko")
const [responseLength, setResponseLength] = useState<ResponseLength>("medium")
const [maxRounds, setMaxRounds] = useState(1)
const [theme, setTheme] = useState<Theme>("dark")
const [theme, setTheme] = useState<Theme>("tokyonight")
const [isSettingsOpen, setIsSettingsOpen] = useState(false)
const [isLoadingThread, setIsLoadingThread] = useState(false)
const [fileWarning, setFileWarning] = useState<string | null>(null)
Expand Down
Loading