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