mirror of
https://github.com/paricafe/misskey.git
synced 2025-03-15 02:39:18 -05:00
move font size to Pari Plus!
This commit is contained in:
parent
7f3df04967
commit
32394e62ae
2 changed files with 12 additions and 11 deletions
|
@ -267,20 +267,9 @@ import { globalEvents } from '@/events.js';
|
||||||
import { claimAchievement } from '@/scripts/achievements.js';
|
import { claimAchievement } from '@/scripts/achievements.js';
|
||||||
|
|
||||||
const lang = ref(miLocalStorage.getItem('lang'));
|
const lang = ref(miLocalStorage.getItem('lang'));
|
||||||
const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') || 1));
|
|
||||||
const fontSizeNumberOld = ref(fontSizeNumber.value);
|
|
||||||
const useSystemFont = ref(miLocalStorage.getItem('useSystemFont') != null);
|
const useSystemFont = ref(miLocalStorage.getItem('useSystemFont') != null);
|
||||||
const dataSaver = ref(defaultStore.state.dataSaver);
|
const dataSaver = ref(defaultStore.state.dataSaver);
|
||||||
|
|
||||||
const fontSizePx = computed(() => fontSizeNumber.value + 14);
|
|
||||||
|
|
||||||
function saveFontSize() {
|
|
||||||
miLocalStorage.setItem('fontSize', fontSizeNumber.value.toString());
|
|
||||||
window.document.documentElement.classList.remove('f-' + fontSizeNumberOld.value);
|
|
||||||
window.document.documentElement.classList.add('f-' + fontSizeNumber.value);
|
|
||||||
fontSizeNumberOld.value = fontSizeNumber.value;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function reloadAsk() {
|
async function reloadAsk() {
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
|
|
|
@ -87,6 +87,18 @@ 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 fontSizeNumberOld = ref(fontSizeNumber.value);
|
||||||
|
|
||||||
|
const fontSizePx = computed(() => fontSizeNumber.value + 14);
|
||||||
|
|
||||||
|
function saveFontSize() {
|
||||||
|
miLocalStorage.setItem('fontSize', fontSizeNumber.value.toString());
|
||||||
|
window.document.documentElement.classList.remove('f-' + fontSizeNumberOld.value);
|
||||||
|
window.document.documentElement.classList.add('f-' + fontSizeNumber.value);
|
||||||
|
fontSizeNumberOld.value = fontSizeNumber.value;
|
||||||
|
}
|
||||||
|
|
||||||
const autoTranslateButton = computed(defaultStore.makeGetterSetter('autoTranslateButton'));
|
const autoTranslateButton = computed(defaultStore.makeGetterSetter('autoTranslateButton'));
|
||||||
const showDetailTimeWhenHover = computed(defaultStore.makeGetterSetter('showDetailTimeWhenHover'));
|
const showDetailTimeWhenHover = computed(defaultStore.makeGetterSetter('showDetailTimeWhenHover'));
|
||||||
const noteClickToOpen = computed(defaultStore.makeGetterSetter('noteClickToOpen'));
|
const noteClickToOpen = computed(defaultStore.makeGetterSetter('noteClickToOpen'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue