ゲーミングのスピードの調整

This commit is contained in:
mattyatea 2023-09-25 02:57:48 +09:00
parent 8154d86a9d
commit 1a9d3737b1
2 changed files with 6 additions and 1 deletions

View File

@ -825,6 +825,8 @@ priority: "優先度"
high: "高"
middle: "中"
low: "低"
GamingSpeedChange: "ゲーミングの光るスピードの調整"
GamingSpeedChangeInfo: "左にすれば早くなる、右にすれば遅くなる。それだけ。"
emailNotConfiguredWarning: "メールアドレスの設定がされていません。"
ratio: "比率"
previewNoteText: "本文をプレビュー"
@ -1863,6 +1865,7 @@ _widgets:
instanceInfo: "サーバー情報"
memo: "付箋"
notifications: "通知"
gamingMode: "ゲーミングモード"
timeline: "タイムライン"
calendar: "カレンダー"
trends: "トレンド"

View File

@ -167,6 +167,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #caption>{{ i18n.ts.numberOfPageCacheDescription }}</template>
</MkRange>
<MkRange v-model="numberOfGamingSpeed" :min="1" :max="60" :step="1" easing>
<template #label>{{ i18n.ts.GamingSpeedChange }}</template>
<template #caption>{{ i18n.ts.GamingSpeedChangeInfo }}</template>
</MkRange>
</div>
</FormSection>
@ -269,6 +271,7 @@ watch(lang, () => {
miLocalStorage.setItem('lang', lang.value as string);
miLocalStorage.removeItem('locale');
});
document.documentElement.style.setProperty('--gamingspeed', numberOfGamingSpeed.value+'s');
watch(numberOfGamingSpeed, () =>{
document.documentElement.style.setProperty('--gamingspeed', numberOfGamingSpeed.value+'s');
})
@ -303,7 +306,6 @@ watch([
highlightSensitiveMedia,
keepScreenOn,
showMediaTimeline,
enableGamingMode
], async () => {
await reloadAsk();
});