aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/TopBar.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-13 23:49:06 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-15 18:03:58 +0200
commitc7abf6e90285857344d7e4f85553a89df971fc3c (patch)
tree1e86b700d7314a40c26612e2f6aa54de19f86108 /subprojects/frontend/src/TopBar.tsx
parentfeat(frontend): light/dark mode switch (diff)
downloadrefinery-c7abf6e90285857344d7e4f85553a89df971fc3c.tar.gz
refinery-c7abf6e90285857344d7e4f85553a89df971fc3c.tar.zst
refinery-c7abf6e90285857344d7e4f85553a89df971fc3c.zip
refactor(frondend): dark theme tweaks
Diffstat (limited to 'subprojects/frontend/src/TopBar.tsx')
-rw-r--r--subprojects/frontend/src/TopBar.tsx20
1 files changed, 9 insertions, 11 deletions
diff --git a/subprojects/frontend/src/TopBar.tsx b/subprojects/frontend/src/TopBar.tsx
index 5ac74e7a..af571a1e 100644
--- a/subprojects/frontend/src/TopBar.tsx
+++ b/subprojects/frontend/src/TopBar.tsx
@@ -1,6 +1,4 @@
1import MenuIcon from '@mui/icons-material/Menu';
2import AppBar from '@mui/material/AppBar'; 1import AppBar from '@mui/material/AppBar';
3import IconButton from '@mui/material/IconButton';
4import Toolbar from '@mui/material/Toolbar'; 2import Toolbar from '@mui/material/Toolbar';
5import Typography from '@mui/material/Typography'; 3import Typography from '@mui/material/Typography';
6import React from 'react'; 4import React from 'react';
@@ -9,16 +7,16 @@ import ToggleDarkModeButton from './ToggleDarkModeButton';
9 7
10export default function TopBar(): JSX.Element { 8export default function TopBar(): JSX.Element {
11 return ( 9 return (
12 <AppBar position="static" color="primary"> 10 <AppBar
11 position="static"
12 elevation={0}
13 color="transparent"
14 sx={(theme) => ({
15 background: theme.palette.highlight.activeLine,
16 borderBottom: `1px solid ${theme.palette.divider2}`,
17 })}
18 >
13 <Toolbar> 19 <Toolbar>
14 <IconButton
15 edge="start"
16 sx={{ mr: 2 }}
17 color="inherit"
18 aria-label="menu"
19 >
20 <MenuIcon />
21 </IconButton>
22 <Typography variant="h6" component="h1" flexGrow={1}> 20 <Typography variant="h6" component="h1" flexGrow={1}>
23 Refinery 21 Refinery
24 </Typography> 22 </Typography>