@@ -21,15 +21,14 @@ import NavigationMobile from '@/components/NavigationMobile.vue'
2121import { useSnackbarStore } from ' @/composables/snackbar'
2222import { useSessionStore } from ' @/stores/session'
2323import { ThemeType , useSettingsStore } from ' @/stores/settings'
24- import { accentColors } from ' @/utils/colors'
2524import { updateAllData } from ' @/utils/update'
2625
2726const router = useRouter ()
2827const { mobile } = useDisplay ()
2928const theme = useTheme ()
3029
3130const { currentEntityList } = storeToRefs (useSessionStore ())
32- const { themeType, accentColor, enablePullToRefresh } = storeToRefs (useSettingsStore ())
31+ const { themeType, enablePullToRefresh } = storeToRefs (useSettingsStore ())
3332
3433const routerTitle = computed (() => router .currentRoute .value .meta .title )
3534
@@ -75,23 +74,6 @@ watch(
7574 { immediate: true },
7675)
7776
78- watch (
79- accentColor ,
80- accentColor => {
81- const color = accentColors .find (color => color .name === accentColor )!
82-
83- theme .themes .value .light .colors .primary = color .primary
84- theme .themes .value .light .colors .secondary = color .secondaryLight
85- theme .themes .value .light .variables [' current-time-color' ] = color .currentTime
86-
87- theme .themes .value .dark .colors .primary = color .primary
88- theme .themes .value .dark .colors .secondary = color .secondaryDark
89-
90- document .querySelector (' meta[name="theme-color"]' )?.setAttribute (' content' , color .theme )
91- },
92- { immediate: true },
93- )
94-
9577const pages: { title: string ; link: string ; icon: string }[] = [
9678 { title: ' Viri' , link: ' sources' , icon: mdiFileDocumentOutline },
9779 { title: ' Naročanje' , link: ' subscribe' , icon: mdiRss },
0 commit comments