From c6547a51fc41eca00f8593ffe06f6ed242e06ecb Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Fri, 6 Dec 2024 13:24:36 -0500 Subject: [PATCH] feat: lots of progress on colors --- web/components/ColorSwitcher.ce.vue | 74 ++++++++++++++++++ web/components/HeaderOsVersion.ce.vue | 19 +---- web/components/Modal.vue | 3 - web/components/Notifications/Indicator.vue | 30 +++++--- web/components/UserProfile.ce.vue | 10 +-- .../UserProfile/DropdownTrigger.vue | 4 +- web/components/shadcn/sheet/index.ts | 2 +- web/package.json | 2 +- web/pages/index.vue | 16 +--- web/store/theme.ts | 75 ++++++++++++++----- web/store/updateOs.ts | 2 +- web/tailwind.config.ts | 52 +++++++------ 12 files changed, 188 insertions(+), 101 deletions(-) create mode 100644 web/components/ColorSwitcher.ce.vue diff --git a/web/components/ColorSwitcher.ce.vue b/web/components/ColorSwitcher.ce.vue new file mode 100644 index 000000000..bd074796e --- /dev/null +++ b/web/components/ColorSwitcher.ce.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/web/components/HeaderOsVersion.ce.vue b/web/components/HeaderOsVersion.ce.vue index 49218a443..504c5cdb9 100644 --- a/web/components/HeaderOsVersion.ce.vue +++ b/web/components/HeaderOsVersion.ce.vue @@ -16,7 +16,6 @@ import { useUpdateOsStore } from '~/store/updateOs'; import { useUpdateOsActionsStore } from '~/store/updateOsActions'; import type { UserProfileLink } from '~/types/userProfile'; import type { UiBadgeProps, UiBadgePropsColor } from '~/types/ui/badge'; -import { useThemeStore } from '~/store/theme'; const { t } = useI18n(); @@ -67,16 +66,6 @@ const updateOsStatus = computed(() => { return null; }); - - -const themeStore = useThemeStore(); -const { darkMode, theme } = toRefs(themeStore); -const toggleDarkMode = () => { - const themeNameToSet = darkMode.value ? 'light' : 'black'; - if (theme.value) { - themeStore.setTheme({ ...theme.value, name: themeNameToSet }); - } -};