2022-12-28 00:03:50 +01:00
|
|
|
<script lang="ts" setup>
|
2022-12-29 21:08:50 +01:00
|
|
|
import { DEFAULT_FONT_SIZE } from '~/constants'
|
2023-01-12 18:52:52 +01:00
|
|
|
import type { FontSize } from '~/composables/settings'
|
|
|
|
|
|
|
|
const userSettings = useUserSettings()
|
2022-12-28 00:03:50 +01:00
|
|
|
|
|
|
|
const sizes = ['xs', 'sm', 'md', 'lg', 'xl'] as FontSize[]
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-01-12 18:52:52 +01:00
|
|
|
<select v-model="userSettings.fontSize">
|
|
|
|
<option v-for="size in sizes" :key="size" :value="size" :selected="userSettings.fontSize === size">
|
2023-01-04 16:22:56 +01:00
|
|
|
{{ `${$t(`settings.interface.size_label.${size}`)}${size === DEFAULT_FONT_SIZE ? $t('settings.interface.default') : ''}` }}
|
2022-12-28 00:03:50 +01:00
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</template>
|