From bf81f698abf126527f94da221dd937815804b5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Jarasson?= Date: Fri, 5 Jan 2024 06:24:12 +0100 Subject: [PATCH] feat(Layout): added bottombar with key sig and latency --- src/renderer/router.tsx | 30 ++----------------- src/renderer/views/Layout/BottomBar.tsx | 22 ++++++++++++++ .../LatencyMonitor/LatencyMonitor.module.scss | 0 .../LatencyMonitor/LatencyMonitor.tsx | 0 .../LatencyMonitor/index.tsx | 0 src/renderer/views/Layout/Layout.module.scss | 4 +++ src/renderer/views/Layout/Layout.tsx | 2 ++ .../QuickChangeKeyToolbar.tsx | 6 ++-- .../Settings/Routing/Routing.module.scss | 7 ----- .../views/Settings/Routing/Routing.tsx | 8 +---- 10 files changed, 35 insertions(+), 44 deletions(-) create mode 100644 src/renderer/views/Layout/BottomBar.tsx rename src/renderer/views/{Settings/Routing => Layout}/LatencyMonitor/LatencyMonitor.module.scss (100%) rename src/renderer/views/{Settings/Routing => Layout}/LatencyMonitor/LatencyMonitor.tsx (100%) rename src/renderer/views/{Settings/Routing => Layout}/LatencyMonitor/index.tsx (100%) diff --git a/src/renderer/router.tsx b/src/renderer/router.tsx index 8352ccc..8471d0f 100644 --- a/src/renderer/router.tsx +++ b/src/renderer/router.tsx @@ -50,15 +50,7 @@ const router = createHashRouter( } > - - - - - } - /> + } /> } > - - - - - } - /> + } /> } > - - - - - } - /> + } /> { + return ( + + + + + + ); +}; + +export default BottomBar; diff --git a/src/renderer/views/Settings/Routing/LatencyMonitor/LatencyMonitor.module.scss b/src/renderer/views/Layout/LatencyMonitor/LatencyMonitor.module.scss similarity index 100% rename from src/renderer/views/Settings/Routing/LatencyMonitor/LatencyMonitor.module.scss rename to src/renderer/views/Layout/LatencyMonitor/LatencyMonitor.module.scss diff --git a/src/renderer/views/Settings/Routing/LatencyMonitor/LatencyMonitor.tsx b/src/renderer/views/Layout/LatencyMonitor/LatencyMonitor.tsx similarity index 100% rename from src/renderer/views/Settings/Routing/LatencyMonitor/LatencyMonitor.tsx rename to src/renderer/views/Layout/LatencyMonitor/LatencyMonitor.tsx diff --git a/src/renderer/views/Settings/Routing/LatencyMonitor/index.tsx b/src/renderer/views/Layout/LatencyMonitor/index.tsx similarity index 100% rename from src/renderer/views/Settings/Routing/LatencyMonitor/index.tsx rename to src/renderer/views/Layout/LatencyMonitor/index.tsx diff --git a/src/renderer/views/Layout/Layout.module.scss b/src/renderer/views/Layout/Layout.module.scss index 128a57d..192b246 100644 --- a/src/renderer/views/Layout/Layout.module.scss +++ b/src/renderer/views/Layout/Layout.module.scss @@ -32,6 +32,10 @@ } } +.bottombar { + padding: 0 4px; +} + .titlebar { -webkit-app-region: drag; display: flex; diff --git a/src/renderer/views/Layout/Layout.tsx b/src/renderer/views/Layout/Layout.tsx index f5f5255..6221836 100644 --- a/src/renderer/views/Layout/Layout.tsx +++ b/src/renderer/views/Layout/Layout.tsx @@ -16,6 +16,7 @@ import About from 'renderer/views/Settings/About'; import TopBar from './TopBar'; import styles from './Layout.module.scss'; +import BottomBar from './BottomBar'; const cx = classnames.bind(styles); @@ -66,6 +67,7 @@ const Layout: React.FC = () => { )} + ); }; diff --git a/src/renderer/views/Settings/NotationSettings/QuickChangeKeyToolbar.tsx b/src/renderer/views/Settings/NotationSettings/QuickChangeKeyToolbar.tsx index d79d57e..e0e8949 100644 --- a/src/renderer/views/Settings/NotationSettings/QuickChangeKeyToolbar.tsx +++ b/src/renderer/views/Settings/NotationSettings/QuickChangeKeyToolbar.tsx @@ -8,9 +8,9 @@ export const QuickChangeKeyToolbar: React.FC = () => { const { settings, updateSetting } = useSettings(); return ( - - - Key Signature + + + Key