diff --git a/src/components/Settings.vue b/src/components/Settings.vue index 73d920ee..14b10a63 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -10,6 +10,28 @@ const { t, locale } = useI18n() const authorizeBtn = ref() as Ref const langsSelect = ref() as Ref +const themeColorOptions = reactive>([ + { + value: '#00a1d6', + label: '#00a1d6', + }, + { + value: '#fb7299', + label: '#fb7299', + }, + { + value: '#49e0ad', + label: '#49e0ad', + }, + { + value: '#0d9488', + label: '#0d9488', + }, + { + value: '#6366f1', + label: '#6366f1', + }, +]) const langs = computed(() => { return [ @@ -56,13 +78,17 @@ function close() { emit('close') } -function onAuthorize() { +function handleAuthorize() { grantAccessKey(authorizeBtn.value) } -function onRevoke() { +function handleRevoke() { revokeAccessKey() } + +function changeThemeColor(color: string) { + settings.value.themeColor = color +}