Skip to content

Commit 2ff90e8

Browse files
committed
added icon to the top left, fixed dark mode functionality on sql query page, light/dark mode icons added
1 parent e220669 commit 2ff90e8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

ksqLight/src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ function App() {
8282
background3: "#1A1A1A",
8383
background4: "#1A1A1A",
8484
},
85+
queryPage: {
86+
main: "rgb(78, 67, 118, .9)",
87+
},
8588
}),
8689
},
8790
});

ksqLight/src/components/Header.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from "react";
2-
import { Typography, createTheme, Toolbar, AppBar, IconButton } from "@mui/material";
2+
import { Typography, createTheme, Toolbar, AppBar, IconButton, Button } from "@mui/material";
33
import SettingsIcon from '@mui/icons-material/Settings';
4-
import SyncIcon from '@mui/icons-material/Sync';
4+
import LightModeIcon from '@mui/icons-material/LightMode';
5+
import DarkModeIcon from '@mui/icons-material/DarkMode';
56
import ArticleIcon from '@mui/icons-material/Article';
67
import { useNavigate } from "react-router-dom";
78

@@ -24,12 +25,13 @@ export const Header = ({ fetchMetrics, setFetchMetrics, showSettings, setShowSet
2425
return (
2526
<AppBar className="diagonal-hero-bg" position="sticky" sx={{ zIndex: (theme) => theme.zIndex.drawer + 1 }}>
2627
<Toolbar>
27-
<Typography onClick={navHome} theme={ksqLightTheme} variant="h3" sx={{ flexGrow: 1 }} color="mainPage">ksqLight</Typography>
28+
<img src={require("../static/ksqLight2.png")} alt="Homepage" width="30" height="30"/>
29+
<Typography theme={ksqLightTheme} variant="h3" sx={{ flexGrow: 1, pl: 2 }} color="mainPage">ksqLight</Typography>
2830
<IconButton aria-label="Documentation" onClick={() => { navGithub() }} color="mainPage">
2931
<ArticleIcon />
3032
</IconButton>
3133
<IconButton aria-label="Refresh" color="mainPage" onClick={() => mode === 'light' ? setMode('dark') : setMode('light')}>
32-
<SyncIcon />
34+
{mode === 'light' ? <DarkModeIcon/> : <LightModeIcon/>}
3335
</IconButton>
3436
<IconButton aria-label="Hide" sx={{ pr: 0 }} onClick={() => setShowSettings(!showSettings)} color="mainPage">
3537
<SettingsIcon />

ksqLight/src/static/ksqLight2.png

19.7 KB
Loading

0 commit comments

Comments
 (0)