From 4f76acd2495e719cd53f87621eec226d76e7f9ea Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 30 Dec 2018 14:00:57 +0900 Subject: :art: --- src/client/app/init.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/client/app/init.ts') diff --git a/src/client/app/init.ts b/src/client/app/init.ts index 36a9c7b24c..af9e5f6e08 100644 --- a/src/client/app/init.ts +++ b/src/client/app/init.ts @@ -413,6 +413,15 @@ export default (callback: (launch: (router: VueRouter) => [Vue, MiOS]) => void, }); //#endregion + //#region line width + document.documentElement.style.setProperty('--lineWidth', `${os.store.state.settings.lineWidth}px`); + os.store.watch(s => { + return s.settings.lineWidth; + }, v => { + document.documentElement.style.setProperty('--lineWidth', `${os.store.state.settings.lineWidth}px`); + }); + //#endregion + // Navigation hook router.beforeEach((to, from, next) => { next(os.store.state.navHook && os.store.state.navHook(to) ? false : undefined); -- cgit v1.2.3-freya