aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/Header/Header.tsx
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-02-23 16:03:07 +0100
committerSascha <GlancingMind@outlook.com>2021-03-04 20:53:27 +0100
commit8c17d730eff3bb59313a2f9f7aa469fe6fff95b2 (patch)
treed03ca941c588fe1719298c41853b4552012e1ab8 /webui/src/components/Header/Header.tsx
parent87bc42fb4695872b82cfa9a922d423df7ff21132 (diff)
downloadgit-bug-8c17d730eff3bb59313a2f9f7aa469fe6fff95b2.tar.gz
Add button to toggle between light- and dark-mode
Diffstat (limited to 'webui/src/components/Header/Header.tsx')
-rw-r--r--webui/src/components/Header/Header.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/webui/src/components/Header/Header.tsx b/webui/src/components/Header/Header.tsx
index 3e39b5f3..3bdb252f 100644
--- a/webui/src/components/Header/Header.tsx
+++ b/webui/src/components/Header/Header.tsx
@@ -5,6 +5,7 @@ import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import { makeStyles } from '@material-ui/core/styles';
+import { LightSwitch } from '../../components/Themer';
import CurrentIdentity from '../CurrentIdentity/CurrentIdentity';
const useStyles = makeStyles((theme) => ({
@@ -21,6 +22,9 @@ const useStyles = makeStyles((theme) => ({
display: 'flex',
alignItems: 'center',
},
+ lightSwitch: {
+ padding: '0 20px',
+ },
logo: {
height: '42px',
marginRight: theme.spacing(2),
@@ -39,6 +43,9 @@ function Header() {
git-bug
</Link>
<div className={classes.filler}></div>
+ <div className={classes.lightSwitch}>
+ <LightSwitch />
+ </div>
<CurrentIdentity />
</Toolbar>
</AppBar>