summaryrefslogtreecommitdiff
path: root/src/client/app/init.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-30 14:00:57 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-30 14:00:57 +0900
commit4f76acd2495e719cd53f87621eec226d76e7f9ea (patch)
tree4467a63b3659693ddbebffb9e54ef1b64e399370 /src/client/app/init.ts
parent:art: (diff)
downloadsharkey-4f76acd2495e719cd53f87621eec226d76e7f9ea.tar.gz
sharkey-4f76acd2495e719cd53f87621eec226d76e7f9ea.tar.bz2
sharkey-4f76acd2495e719cd53f87621eec226d76e7f9ea.zip
:art:
Diffstat (limited to 'src/client/app/init.ts')
-rw-r--r--src/client/app/init.ts9
1 files changed, 9 insertions, 0 deletions
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);