How to darken background of focused thumb? (1 Viewer)

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Hi skinners!
    I am trying to achieve this effect with the Default skin:
    (notice how the background of the focused item is less transparent)
    I can for the heck not figure out what setting or image is responsible for that. Any help for a poor coder :confused:?

    attachment.php

    ...sample image from streamedMP where t works just the way I want.
     

    Attachments

    • 00-44-20.jpg
      00-44-20.jpg
      160.6 KB

    ryan20021982

    Retired Team Member
  • Premium Supporter
  • June 27, 2008
    655
    86
    USA
    Home Country
    United States of America United States of America
    <unfocusedAlpha>200</unfocusedAlpha>

    I know this is used in Monochrome to control the transparency, sorry only skin I have extensively messed with
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #3
    Thx for the suggestion, I tried that settings. Unfortunately I couldn't get the effect shown above, because unfocusedAlpha only changes the transparency of the NON focused items. The focused item is still fully transparent. I would need the opposite property (which is not available).
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #4
    I just found how to do it:
    You have to set the imageFolderFocus on the thumbnailpanel to some dark image.
    BUT: Here's a bug in the skinengine:
    If you have zoomXPixels or zoomYPixels higher than 0 (meaning you want the focused item to be enlarged) you won't get the effect, because the imageFolderFocus is then rendered on top of the actual thumb. It's easy to see when using black.png:
    attachment.php
     

    Attachments

    • 14-45-20.jpg
      14-45-20.jpg
      155.5 KB

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #6
    Yes, and I have it working, but as said, it will NOT work if you set the zoom.
     

    Psycho Reptile

    Retired Team Member
  • Premium Supporter
  • April 19, 2006
    1,316
    787
    Cambridge, England
    Home Country
    United Kingdom United Kingdom
    Yep, just tried everything I could think of and you are correct... The imageFolderFocus gfx is drawn on top of "everything" if you have zoom pixels. IMO this is a skin engine bug.
    However I don't see the need to zoom the thumb when there is such a big difference between the focus and unfocus thumbs.... just my 2p ;)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #8
    I posted this a bug in the bugreports forum. (would be nice if you can confirm it there)
    I still need this to work with the zoom, because:
    in OnlineVideos sometimes the thumbnailpanel is filled with transprents pngs (site icons) and sometime it's filled with thumbs from videos. On the second case, if you don't zoom the focued item you can't see the selection very good (unless I add a monster-border ;) ) because the thumb now hides the darkening effect.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #9
    I now found the fix and posted a patch + updated dll to test it.
    Here's a screenshot of it working:
    attachment.php
     

    Attachments

    • 21-00-42.jpg
      21-00-42.jpg
      69 KB

    Users who are viewing this thread

    Top Bottom