2018-06-16, 14:09
(2018-06-16, 13:12)jurialmunkey Wrote:Plex for browser has a default background with a certain amount of transparency. Blurred fanart is placed behind this background and makes for a slight change in colour due to the colour of the blurred fanart.(2018-06-16, 11:53)joostzilla Wrote:(2018-06-16, 04:34)jurialmunkey Wrote: The fixed saturation/luminosity is done on purpose, because otherwise you end up with washed out colours which don't work well for highlights/backgroundThanks for the info. Maybe i can change the opacity of the default background and let the fanart decide the colour of the background. (When i change 'default.jpg' will that affect the background?)
This is not something which I can easily add options for, so you will need to tweak the settings in Startup.xml
Code:<onfocus>Skin.SetString(colorbox_main,main:fhls*-;0.45;0.9)</onfocus>
<onfocus>Skin.SetString(colorbox_comp,main:hls*0.75;0;0@fhls*-;0.45;0.9)</onfocus>
colorbox_main is the main colour used for background and the primary gradient highlight colour.
colorbox_comp is the secondary gradient colour.
fhls means Fixed hue luminosity saturation
a "-" value means nothing is done. Otherwise values are between 0.0 (0%) and 1.0 (100%).
So hue is not changed, luminosity is set at 45% and saturation is 90%
You can tweak the 0.45 and 0.9 values for the main colour to change how bright and saturated the matched colour is. You will need to restart kodi after tweaking the values to see the changes.
For the complimentary colour the hls at the start is additive - so I'm first cycling the hue by 75% to get a complimentary colour and then fixing the luminosity and saturation at 45% and 90% with the fhls command after.
Ultimately i would like to achieve similar background effects as in PLEX.
What is the background effect that Plex does? Ive never used Plex, so can you describe + link a screenshot or video and I will be able to better guide you.
BTW you can't change the opacity of a jpg (only png have alpha channels). Also changing default.jpg won't do anything anyway.
I know i can only use png for transparent images. Is it possible to add a png as default background?
Video: Plex Example