Skip to content

Commit

Permalink
Use auto theme by default (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc authored Feb 11, 2025
1 parent 705ef6a commit 4c82c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/style/materialUISetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const useMaterialUITheme = () => {
const savedThemeMode = localStorage.getItem('themeMode')
const isSystemModeDark = useMediaQuery('(prefers-color-scheme: dark)')
const [isDarkMode, setIsDarkMode] = useState(savedThemeMode === 'dark' || isSystemModeDark)
const [currentThemeMode, setCurrentThemeMode] = useState(savedThemeMode || THEME_MODES.LIGHT)
const [currentThemeMode, setCurrentThemeMode] = useState(savedThemeMode || THEME_MODES.AUTO)

const updateThemeMode = mode => {
setCurrentThemeMode(mode)
Expand Down

0 comments on commit 4c82c8b

Please sign in to comment.