文字サイズを設定できるように
This commit is contained in:
parent
9a9fb37a78
commit
d83efecc94
10 changed files with 50 additions and 0 deletions
|
|
@ -410,6 +410,15 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS], os: MiOS)
|
|||
});
|
||||
//#endregion
|
||||
|
||||
//#region fontSize
|
||||
document.documentElement.style.setProperty('--fontSize', `${os.store.state.device.fontSize}px`);
|
||||
os.store.watch(s => {
|
||||
return s.device.fontSize;
|
||||
}, v => {
|
||||
document.documentElement.style.setProperty('--fontSize', `${os.store.state.device.fontSize}px`);
|
||||
});
|
||||
//#endregion
|
||||
|
||||
document.addEventListener('visibilitychange', () => {
|
||||
if (!document.hidden) {
|
||||
os.store.commit('clearBehindNotes');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue