Skip to content

Commit 9120c0b

Browse files
authored
Merge pull request #123 from filips123/marija-mojca-boh
In memoriam: Marija (Mojca) Boh
2 parents ad53465 + 8e547aa commit 9120c0b

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

website/src/App.vue

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ import NavigationMobile from '@/components/NavigationMobile.vue'
2121
import { useSnackbarStore } from '@/composables/snackbar'
2222
import { useSessionStore } from '@/stores/session'
2323
import { ThemeType, useSettingsStore } from '@/stores/settings'
24-
import { accentColors } from '@/utils/colors'
2524
import { updateAllData } from '@/utils/update'
2625
2726
const router = useRouter()
2827
const { mobile } = useDisplay()
2928
const theme = useTheme()
3029
3130
const { currentEntityList } = storeToRefs(useSessionStore())
32-
const { themeType, accentColor, enablePullToRefresh } = storeToRefs(useSettingsStore())
31+
const { themeType, enablePullToRefresh } = storeToRefs(useSettingsStore())
3332
3433
const 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-
9577
const pages: { title: string; link: string; icon: string }[] = [
9678
{ title: 'Viri', link: 'sources', icon: mdiFileDocumentOutline },
9779
{ title: 'Naročanje', link: 'subscribe', icon: mdiRss },

website/src/plugins/vuetify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { sl } from 'vuetify/locale'
88

99
import { AccentColorName, accentColors } from '@/utils/colors'
1010

11-
const accentColor = accentColors.find(color => color.name === AccentColorName.Green)!
11+
const accentColor = accentColors.find(color => color.name === AccentColorName.Black)!
1212

1313
const lightTheme: ThemeDefinition = {
1414
dark: false,

0 commit comments

Comments
 (0)