From 2e3affd9d11bece37dfa6d167fc531b3d044a4bc Mon Sep 17 00:00:00 2001 From: big boy Date: Sun, 15 Oct 2023 19:59:13 +0100 Subject: [PATCH] Load default theme from config.json, conditional dark attributes, light theme adjustments, further theme mixin coverage of extant default dark styling, charts reactive to theme switch --- public/config.json | 1 + public/img/sidebar-background-light.svg | 206 ++++++++++++++++++ remote/config.json | 1 + src/App.vue | 5 +- src/components/TheConnectingDialog.vue | 8 +- src/components/TheEditor.vue | 5 +- src/components/TheSidebar.vue | 23 +- .../TheTimelapseRenderingSnackbar.vue | 21 +- src/components/TheTopbar.vue | 12 +- src/components/TheUpdateDialog.vue | 5 +- src/components/TheUploadSnackbar.vue | 5 +- .../charts/HistoryAllPrintStatusChart.vue | 12 +- .../charts/HistoryFilamentUsage.vue | 10 +- src/components/charts/HistoryPrinttimeAvg.vue | 10 +- src/components/charts/TempChart.vue | 3 +- src/components/mixins/theme.ts | 13 ++ .../panels/Machine/ConfigFilesPanel.vue | 9 +- src/components/panels/StatusPanel.vue | 5 +- .../settings/SettingsMacrosTabExpert.vue | 15 +- .../settings/SettingsNavigationTab.vue | 12 +- .../settings/SettingsNavigationTabItem.vue | 11 +- src/components/ui/Panel.vue | 7 +- src/main.ts | 36 +-- src/plugins/vuetify.ts | 6 - src/store/actions.ts | 2 +- src/store/files/getters.ts | 4 +- src/store/types.ts | 1 + 27 files changed, 340 insertions(+), 108 deletions(-) create mode 100644 public/img/sidebar-background-light.svg diff --git a/public/config.json b/public/config.json index 26ac427f1..cdc1db4a6 100644 --- a/public/config.json +++ b/public/config.json @@ -1,5 +1,6 @@ { "defaultLocale": "en", + "defaultTheme": "dark", "hostname": null, "port": null, "instancesDB": "moonraker", diff --git a/public/img/sidebar-background-light.svg b/public/img/sidebar-background-light.svg new file mode 100644 index 000000000..805f24268 --- /dev/null +++ b/public/img/sidebar-background-light.svg @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remote/config.json b/remote/config.json index 1ac52bb39..c00849b08 100644 --- a/remote/config.json +++ b/remote/config.json @@ -1,5 +1,6 @@ { "defaultLocale": "en", + "defaultTheme": "dark", "hostname": null, "port": null, "instancesDB": "browser", diff --git a/src/App.vue b/src/App.vue index a7e0aba90..c7411bca9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@