feat: add grayscale mode to user preferences (#1177)

This commit is contained in:
rshigg 2023-01-17 09:25:36 -03:30 committed by GitHub
parent bb41c468bb
commit 0b2b9a713b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 49 additions and 11 deletions

View file

@ -10,10 +10,12 @@ const showUserPicker = logicAnd(
usePreferences('experimentalUserPicker'),
() => useUsers().value.length > 1,
)
const isGrayscale = usePreferences('grayscaleMode')
</script>
<template>
<div h-full>
<div h-full :data-mode="isHydrated && isGrayscale ? 'grayscale' : ''">
<main flex w-full mxa lg:max-w-80rem>
<aside class="hidden sm:flex w-1/8 md:w-1/6 lg:w-1/5 xl:w-1/4 justify-end xl:me-4 zen-hide" relative>
<div sticky top-0 w-20 xl:w-100 h-screen flex="~ col" lt-xl-items-center>