diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-11 22:34:45 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-11 22:34:45 +0900 |
| commit | 0f55e657014f6a171c9e4f4389dd7ae49493a5fc (patch) | |
| tree | 878366006cbbdacce8e15fdace1ce8d7490bdc32 /src/client/init.ts | |
| parent | Add discord link (diff) | |
| download | misskey-0f55e657014f6a171c9e4f4389dd7ae49493a5fc.tar.gz misskey-0f55e657014f6a171c9e4f4389dd7ae49493a5fc.tar.bz2 misskey-0f55e657014f6a171c9e4f4389dd7ae49493a5fc.zip | |
ぼかし効果の切り替え機能
Diffstat (limited to 'src/client/init.ts')
| -rw-r--r-- | src/client/init.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/init.ts b/src/client/init.ts index e6b308c5fb..a4a228da22 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -243,6 +243,14 @@ watch(defaultStore.reactiveState.useBlurEffectForModal, v => { document.documentElement.style.setProperty('--modalBgFilter', v ? 'blur(4px)' : 'none'); }, { immediate: true }); +watch(defaultStore.reactiveState.useBlurEffect, v => { + if (v) { + document.documentElement.style.removeProperty('--blur'); + } else { + document.documentElement.style.setProperty('--blur', 'none'); + } +}, { immediate: true }); + let reloadDialogShowing = false; stream.on('_disconnected_', async () => { if (defaultStore.state.serverDisconnectedBehavior === 'reload') { |