From 33cc9d8520af7ea0e19a0a3bf5a9361a57067459 Mon Sep 17 00:00:00 2001 From: Belar Date: Sun, 5 Jan 2025 11:13:17 +0000 Subject: [PATCH 1/2] feat: add settings side bar --- src/base/components/controls.html | 30 +++++-- src/base/components/settings.html | 67 ++++++---------- src/base/components/tabs.html | 2 +- src/base/components/titlebar.html | 30 ------- src/base/scripts/instance.js | 46 ++++++----- src/base/scripts/main.js | 2 + src/base/scripts/settings.js | 51 ++++++++++++ src/base/scripts/theme.js | 9 ++- src/base/scripts/toggles.js | 21 +---- src/base/styles/controls.css | 29 +++++++ src/base/styles/form.css | 6 ++ src/base/styles/index.css | 127 +----------------------------- src/base/styles/settings.css | 23 ++++++ src/types/ipc.ts | 2 +- 14 files changed, 197 insertions(+), 248 deletions(-) create mode 100644 src/base/scripts/settings.js create mode 100644 src/base/styles/controls.css create mode 100644 src/base/styles/form.css create mode 100644 src/base/styles/settings.css diff --git a/src/base/components/controls.html b/src/base/components/controls.html index d3b1777..4807656 100644 --- a/src/base/components/controls.html +++ b/src/base/components/controls.html @@ -1,5 +1,25 @@ -
- -
+ Reload active tab + + diff --git a/src/base/components/settings.html b/src/base/components/settings.html index d9789d5..7282fb5 100644 --- a/src/base/components/settings.html +++ b/src/base/components/settings.html @@ -1,49 +1,26 @@ -