From 03ca03debc95f89da1c11c438b126b5d664036d9 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Sat, 10 Sep 2022 19:00:35 +0200 Subject: [PATCH] Add dark theme --- src/components/Toolbar.jsx | 7 +- src/main.jsx | 12 +++ src/styles/main.scss | 152 +++++++++++++++++++------------------ 3 files changed, 97 insertions(+), 74 deletions(-) diff --git a/src/components/Toolbar.jsx b/src/components/Toolbar.jsx index d72670a..f61792f 100644 --- a/src/components/Toolbar.jsx +++ b/src/components/Toolbar.jsx @@ -1,7 +1,7 @@ import { CompoundButton } from './CompoundButton.jsx' import { Icon } from './Icon.jsx' -export const Toolbar = ({ mode, setMode, source, setSource, onShowMenu, onHelp }) => { +export const Toolbar = ({ mode, setMode, source, setSource, onShowMenu, onHelp, theme, setTheme }) => { return (
@@ -52,6 +52,11 @@ export const Toolbar = ({ mode, setMode, source, setSource, onShowMenu, onHelp }
+
+ +