Skip to content

Commit

Permalink
Merge pull request #154 from mihawk90/blur-video-themes
Browse files Browse the repository at this point in the history
style: add blur to video theme backgrounds
  • Loading branch information
prayag17 authored Jul 1, 2024
2 parents a96f198 + 38d1300 commit 4d465d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@
--accent2-dark: YOUR ACCENT COLOR 2(DARKER SHADE);
}
```
- ## Add blur to video theme backgrounds

Adds the blur effect present on static backgrounds to video theme backgrounds as well.
*Caution*: This is a performance intensive filter and may cause considerable slowdowns on some devices.
If you are adding this to the serverwide Custom CSS, users can remove the effect using the *Remove Backdrop Filter* addon above.

```css
@import url("https://cdn.jsdelivr.net/npm/jellyskin@latest/dist/addons/videoThemeBlur.css");
```

# 💻 Screenshots

Expand Down
7 changes: 7 additions & 0 deletions src/addons/videoThemeBlur.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @format */

@use "../abstract/variables" as *;
.videoPlayerContainer ~ #reactRoot .backgroundContainer.withBackdrop {
backdrop-filter: blur($filter-blur-default);
opacity: 1;
}

0 comments on commit 4d465d8

Please sign in to comment.