-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(backdrop): add backdrop support #105
Conversation
960a340
to
1dbb2f2
Compare
I'm actually going to rework this a bit to use Blurhash as backdrops instead, so putting it back into draft. |
Another thing you could do is still use the picture. But have a customizable blur amount in the settings |
The issue is that blurs are really expensive, especially on images that big. Not all devices we'll run on are super fast (Smart TVs are one we have already confirmed can't handle the blur filter, over on jf-web, but cheap 100$ Android phones and cheap laptops come to mind as well). It's sort of nice to have for customization, but imo the performance hit isn't really worth it and a blurred image provides much better visual separation, making it easier to read text and such. |
612f9c2
to
3803e9c
Compare
A component has been added to the default layout, which displays a blurhash from a Vuex store. The Vuex store can either set or clear backdrops. To set a backdrop, you must pass a BaseItemDto[] in order to retrieve the relevant images.
3803e9c
to
09b9498
Compare
This is ready for reviews again @camc314. I reworked the store to use actions instead of a plugin (going to make the same changes to the other stores in an upcoming PR), since that's how it's supposed to be done. It also uses blurhashes now, since that looks much cleaner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, this looks good.
Do you think it'd be a good idea to apply a filter (lighten/darken) depending on the theme?
Kudos, SonarCloud Quality Gate passed!
|
I changed a bit how the overlay color works (It didn't react to the light theme before). There is now a "background" property on the Vuetify themes. Vuetify will generate a bunch of CSS classes for it automatically. It's now used as the background color for the app and for the overlay. I took the background colors of the current Jellyfin Light and Dark themes for now. |
A component has been added to the default layout, which displays an image from a Vuex store.
The Vuex store can either set or clear backdrops.
To set a backdrop, you must pass a BaseItemDto[] in order to retrieve the relevant images. It is designed to allow a rotation of the array, in order to change which backdrop is displayed.
Note: It's currently only displayed on the item details page. It looks kind of bad, so we might want to redesign the page a bit to make use of the backdrops.