removed hwacc

This commit is contained in:
fly_mc 2024-11-15 14:07:32 +08:00
parent 3aa0a5ea9b
commit 4695bb425f
7 changed files with 0 additions and 22 deletions

View file

@ -1291,7 +1291,6 @@ pariPlusSystemSettings: "Pari Plus! system settings"
pariPlusNoteSettings: "Pari Plus! note settings"
pariPlusAppearanceSettings: "Pari Plus! appearance settings"
pariPlusFontPicker: "Default fonts"
useHardwareAcceleration: "Enable hardware acceleration"
enableRenderingOptimization: "Enable rendering optimization"
autoTranslateButton: "Display translation function on notes in different languages"
showDetailTimeWhenHover: "Hover the timestamp of the note to expand the detailed time"

View file

@ -1298,7 +1298,6 @@ pariPlusSystemSettings: "Pari Plus! 系统设置"
pariPlusNoteSettings: "Pari Plus! 帖文设置"
pariPlusAppearanceSettings: "Pari Plus! 外观设置"
pariPlusFontPicker: "默认字体"
useHardwareAcceleration: "启用硬件加速"
enableRenderingOptimization: "启用渲染优化"
autoTranslateButton: "在不同语言的帖文上显示翻译功能"
showDetailTimeWhenHover: "悬浮/长按帖文时间戳时,展开详细时间"

View file

@ -1298,7 +1298,6 @@ pariPlusSystemSettings: "Pari Plus! 系統設定"
pariPlusNoteSettings: "Pari Plus! 貼文設定"
pariPlusAppearanceSettings: "Pari Plus! 外觀設定"
pariPlusFontPicker: "預設字體"
useHardwareAcceleration: "啓用硬件加速"
enableRenderingOptimization: "啓用渲染優化"
autoTranslateButton: "在不同語言的貼文上顯示翻譯功能"
showDetailTimeWhenHover: "長按貼文時間戳記時展開詳細時間"

View file

@ -201,10 +201,6 @@ export async function common(createVue: () => App<Element>) {
}
}, { immediate: true });
watch(defaultStore.reactiveState.useHardwareAcceleration, v => {
document.documentElement.classList.toggle('font-smoothing-auto', !v);
}, { immediate: true });
// Keep screen on
const onVisibilityChange = () => document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible') {

View file

@ -12,7 +12,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="_gaps_m">
<div class="label">{{ i18n.ts.pariPlusSystemSettings }}</div>
<div class="_gaps_s">
<MkSwitch v-model="useHardwareAcceleration">{{ i18n.ts.useHardwareAcceleration }}</MkSwitch>
<MkSwitch v-model="enableRenderingOptimization">{{ i18n.ts.enableRenderingOptimization }}</MkSwitch>
</div>
</div>

View file

@ -511,10 +511,6 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: { type: 'syuilo/bubble1', volume: 1 } as SoundStore,
},
useHardwareAcceleration: {
where: 'device',
default: true,
},
enableRenderingOptimization: {
where: 'device',
default: true,

View file

@ -14,16 +14,6 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.font-smoothing-auto * {
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
}
:root {
--MI-radius: 12px;
--MI-marginFull: 16px;