Skip to content

Commit

Permalink
make blurhash filters only apply in light themes
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Dec 29, 2023
1 parent 769af3e commit 8648380
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/organisms/room/message/ImageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const ImageContent = as<'div', ImageContentProps>(
style={{
width: '100%',
height: '100%',
filter: 'contrast(80%) invert(100%) brightness(0.75) invert(100%)'
filter: 'var(--blurhash-filter)'
}}
width={32}
height={32}
Expand Down
2 changes: 1 addition & 1 deletion src/app/organisms/room/message/VideoContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const VideoContent = as<'div', VideoContentProps>(
style={{
width: '100%',
height: '100%',
filter: 'contrast(80%) invert(100%) brightness(0.75) invert(100%)'
filter: 'var(--blurhash-filter)'
}}
width={32}
height={32}
Expand Down
5 changes: 5 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@

--popup-window-drawer-width: 280px;

--blurhash-filter: contrast(80%) invert(100%) brightness(0.75) invert(100%);

@include screen.smallerThan(tabletBreakpoint) {
--navigation-drawer-width: calc(240px + var(--border-width));
--people-drawer-width: calc(256px - var(--border-width));
Expand Down Expand Up @@ -295,6 +297,9 @@
--fw-bold: 550;

--font-secondary: 'InterVariable', var(--font-emoji), sans-serif;

/* other */
--blurhash-filter: none;
}

.butter-theme {
Expand Down

0 comments on commit 8648380

Please sign in to comment.