mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-22 09:48:40 -06:00
frontend: modified default font face and size
This commit is contained in:
parent
ee41972b22
commit
98bfd23da8
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ import FormSection from '@/components/form/section.vue';
|
||||||
const defaultFont = getDefaultFontSettings();
|
const defaultFont = getDefaultFontSettings();
|
||||||
console.log(defaultFont);
|
console.log(defaultFont);
|
||||||
|
|
||||||
const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') || 1));
|
const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') ?? 2));
|
||||||
const fontSizeNumberOld = ref(fontSizeNumber.value);
|
const fontSizeNumberOld = ref(fontSizeNumber.value);
|
||||||
|
|
||||||
const fontSizePx = computed(() => fontSizeNumber.value + 14);
|
const fontSizePx = computed(() => fontSizeNumber.value + 14);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import type { Ref, ComputedRef } from 'vue';
|
import type { Ref } from 'vue';
|
||||||
import { miLocalStorage } from '@/local-storage.js';
|
import { miLocalStorage } from '@/local-storage.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ async function loadFontStyle(fontId: string) {
|
||||||
|
|
||||||
export function getDefaultFontSettings() {
|
export function getDefaultFontSettings() {
|
||||||
const def_arr = miLocalStorage.getItem('defaultFontFace')?.split('_');
|
const def_arr = miLocalStorage.getItem('defaultFontFace')?.split('_');
|
||||||
const fontFace = ref(def_arr?.[0] ?? 'system-ui');
|
const fontFace = ref(def_arr?.[0] ?? 'maokentangyuan');
|
||||||
const fontFaceType = ref(def_arr?.[1] ?? '');
|
const fontFaceType = ref(def_arr?.[1] ?? '');
|
||||||
const availableTypes = computed(() => getFontOptionsList(fontFace.value));
|
const availableTypes = computed(() => getFontOptionsList(fontFace.value));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue