File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ import Tabs from '@mui/material/Tabs';
1313import Tab from '@mui/material/Tab' ;
1414import IconAdd from '@mui/icons-material/Add' ;
1515import DeleteIcon from '@mui/icons-material/DeleteForever' ;
16+ import LightModeIcon from '@mui/icons-material/LightMode' ;
17+ import DarkModeIcon from '@mui/icons-material/DarkMode' ;
1618import Box from '@mui/material/Box' ;
1719import Snackbar from '@mui/material/Snackbar' ;
1820import Alert from '@mui/material/Alert' ;
@@ -388,6 +390,14 @@ const App = () => {
388390 </ SplitPane >
389391 < AppBar position = "fixed" color = "primary" className = { classes . statusBar } >
390392 < Toolbar className = { classes . statusToolbar } >
393+ < IconButton
394+ onClick = { ( ) => store . config . setDarkMode ( ! store . config . isDarkMode ) }
395+ size = "small"
396+ title = { store . config . isDarkMode ? 'Switch to Light Mode' : 'Switch to Dark Mode' }
397+ sx = { { mr : 2 , color : 'inherit' } }
398+ >
399+ { store . config . isDarkMode ? < LightModeIcon fontSize = "small" /> : < DarkModeIcon fontSize = "small" /> }
400+ </ IconButton >
391401 < Box display = "flex" >
392402 { /* In dev mode the app version shown is from electron, in production it is ours */ }
393403 < div className = { classes . statusVersion } >
You can’t perform that action at this time.
0 commit comments