From 7bd88de07b25e850053649087aa31b24880df740 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 22 Mar 2024 13:02:01 +0000 Subject: [PATCH] Theming API: Add new helper methods and remove useColorScheme --- app.vue | 16 ++-- components/lib/config/PrimeVue.js | 10 ++- components/lib/themes/config/index.js | 56 ++++++++----- components/lib/themes/utils/extendPreset.js | 15 ++++ components/lib/themes/utils/index.js | 4 +- components/lib/themes/utils/service.js | 4 + components/lib/themes/utils/sharedUtils.js | 17 ++++ components/lib/themes/utils/themeUtils.js | 84 ++++++------------- components/lib/themes/utils/updatePreset.js | 11 +++ components/lib/themes/utils/updateTheme.js | 13 +++ components/lib/themes/utils/useColorScheme.js | 17 ---- layouts/AppConfigurator.vue | 19 ++++- plugins/app-state.js | 2 +- 13 files changed, 155 insertions(+), 113 deletions(-) create mode 100644 components/lib/themes/utils/extendPreset.js create mode 100644 components/lib/themes/utils/updatePreset.js create mode 100644 components/lib/themes/utils/updateTheme.js delete mode 100644 components/lib/themes/utils/useColorScheme.js diff --git a/app.vue b/app.vue index c24a551d3..f33504dca 100644 --- a/app.vue +++ b/app.vue @@ -6,7 +6,6 @@