Kodi Community Forum

Full Version: [SOLVED] <colordiffuse> question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an image control with <colordiffuse> applied to it like so:

PHP Code:
<!-- Background texture for the movie menu item control -->
        <
control type="image" description="movie fanart">
          <
animation effect="fade" time="600">VisibleChange</animation>
          <
visible>Container(300).HasFocus(1) + Library.HasContent(Movies)</visible>
          <
texture background="true">$INFO[Window.Property(LatestMovie.6.Fanart)]</texture>
          <
colordiffuse>FanartDiffuse</colordiffuse>
        </
control

What happens is that the background image is ghosted and so are all of the other controls on the screen.
https://www.dropbox.com/s/kf4uidk8wf2ya3....45.57.png

Is there something equivalent to a z-index (from the world of CSS) in XBMC.
Hi Frishi, post also what is "FanartDiffuse" in your include.
For z-index, refer to: (From wiki)

zorder
This specifies the “depth” that the window should be drawn at. Windows with higher zorder are drawn on top of windows with lower z-order. All dialogs by default have zorder 1, so if you have a particular dialog that you want underneath all others, give it a zorder of 0. (Note that the normal render order is: The base window, then the overlays (music + video), then dialogs. <zorder> only effects the rendering of the dialogs.

Cheers
It looks like you've added the fanart code after all of the control's code hence why it looks like they're transparent.
Look in your colors.xml and you'll find FanartDiffuse is a transparent. ie 88FFFFFF (AARRGGBB).
Thank you Hitcher.
That was it.