Skin engine enhancements (themes, guide colors, skin functions, weather settings...) | Page 19

Discussion in 'Area 51 - Testing Area' started by ajp8164, December 17, 2011.

  1. elliottmc
    • Premium Supporter

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi,



    There is definitely still an issue here with the label for the radio guide group button.

    If I have

    Code (Text):
    1.  
    2.     <control>
    3.       <description>TvGroup button label</description>
    4.       <type>label</type>
    5.       <id>0</id>
    6.       <posX>62</posX>
    7.       <posY>730</posY>
    8.       <valign>middle</valign>
    9.       <label>#Radio.Guide.ChangeGroup</label>
    10.       <font>AvalonLight16</font>
    11.         <textcolor>ffffff</textcolor>
    12.       <animation effect="rotate" end="90" time="0">WindowOpen</animation>
    13.       <animation effect="rotate" end="90" time="0">WindowClose</animation>
    14.       </control>
    15.  
    (which is what your Avalon skin has)

    then I get no label at all.

    If I change #Radio to #TV then it shows the label for the current TV guide (not radio) group, and this doesn't change if I change group.

    Also, when moving left from the channel names, I scroll back in time through the radio EPG rather than moving focus to the group button.

    Can you help?

    Mark
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ajp8164

    ajp8164 Portal Pro

    Joined:
    January 9, 2008
    Messages:
    575
    Likes Received:
    583
    Gender:
    Male
    Occupation:
    Consulting Software Engineer
    Location:
    Atlanta, GA
    Ratings:
    +584 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    The sample Avalon skin (Avaon3779) dowloadable from post 3 of this thread implements this exact capability. Take a look at that as an example.
     
  4. ajp8164

    ajp8164 Portal Pro

    Joined:
    January 9, 2008
    Messages:
    575
    Likes Received:
    583
    Gender:
    Male
    Occupation:
    Consulting Software Engineer
    Location:
    Atlanta, GA
    Ratings:
    +584 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Does all this work in 1.2.3? I don't use radio at all so it's hard for me to test..

    Also, please post your skin control for the radio guide group button (needs to be button3part; id=100) - this control needs to be nearly identical to the tv guide group button (setup for colorization) since the logic for guide colorization applies to both radio and tv guides (it's a base capability).
     
    Last edited: May 4, 2012
  5. elliottmc
    • Premium Supporter

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Yes, all working in 1.2.3.

    [/quote]

    Already done!

    https://forum.team-mediaportal.com/...s-weather-settings.103616/page-18#post-864378
     
  6. ajp8164

    ajp8164 Portal Pro

    Joined:
    January 9, 2008
    Messages:
    575
    Likes Received:
    583
    Gender:
    Male
    Occupation:
    Consulting Software Engineer
    Location:
    Atlanta, GA
    Ratings:
    +584 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Already done!

    https://forum.team-mediaportal.com/...s-weather-settings.103616/page-18#post-864378[/quote]
    Hi Mark,
    Found and fixed a problem that affected the rendering of the radio guide group button. Your xml you posted is good. Posted a new build (5/4/2012) in post 3.
     
    • Like Like x 2
  7. elliottmc
    • Premium Supporter

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Tested and working fine. Thanks!

    I notice that the Avalon skin you are using is based on an old version (check the layout of TV home). I guess all of the required skin changes are documented to help skinners get up to speed?

    Right now, I think this is ready to merge to master. The only thing I think should be added is an import button on the EPG genre config screen to import settings from a TV server or skin config file as I have already mentioned. Is this possible? Otherwise anyone using multiseat will have to edit files.

    Thanks,

    Mark
     
  8. ajp8164

    ajp8164 Portal Pro

    Joined:
    January 9, 2008
    Messages:
    575
    Likes Received:
    583
    Gender:
    Male
    Occupation:
    Consulting Software Engineer
    Location:
    Atlanta, GA
    Ratings:
    +584 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Changes that affect existing skins for TV guide genre colors are documented at http://wiki.team-mediaportal.com/1_..._Changes/1.2.0_to_1.3.0/TV_Guide_Genre_Colors

    The full list is at http://wiki.team-mediaportal.com/1_...e/7_Skins/Skin_Related_Changes/1.2.0_to_1.3.0

    So, an import button should only import the following sections of the specified xml file?
    • genremap
    • genreoptions
    • tvguidecolors
     
  9. elliottmc
    • Premium Supporter

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I would say so. You'll then need to update the button status for

    <entry name="specifympaaratedasmovie">no</entry>

    but I guess you will have to update everything after import.

    I think the biggest challenge here will be the tvguidecolors section.

    In my MediaPortal.xml I have

    Code (Text):
    1.  
    2.   <section name="tvguidecolors">
    3.     <entry name="guidecolorchannelbutton">FF0E517B</entry>
    4.     <entry name="guidecolorchannelbuttonselected">FF008000</entry>
    5.     <entry name="guidecolorgroupbutton">FF0E517B</entry>
    6.     <entry name="guidecolorgroupbuttonselected">FF008000</entry>
    7.     <entry name="guidecolorprogramselected">FF008000</entry>
    8.     <entry name="guidecolorprogramended">FF808080</entry>
    9.     <entry name="guidecolorborderhighlight">99FFFFFF</entry>
    10.     <entry name="defaultgenre">FF1D355B,FF0E517B</entry>
    11.     <entry name="Documentary">FFD2691E,FFD2691E</entry>
    12.     <entry name="Kids">FF00FFFF,FF00FFFF</entry>
    13.     <entry name="Movie">FF800080,FF800080</entry>
    14.     <entry name="Music">FF800000,FF800000</entry>
    15.     <entry name="News">FF90EE90,FF90EE90</entry>
    16.     <entry name="Other">FFFFD700,FFFFD700</entry>
    17.     <entry name="Special">FFFFD700,FFFFD700</entry>
    18.     <entry name="Sports">FF006400,FF006400</entry>
    19.   </section>
    20.  
    However, the skin author won't know what genres I want to use, so they will probably have to do something like

    Code (Text):
    1.  
    2.   <section name="tvguidecolors">
    3.     <entry name="guidecolorchannelbutton">FF0E517B</entry>
    4.     <entry name="guidecolorchannelbuttonselected">FF008000</entry>
    5.     <entry name="guidecolorgroupbutton">FF0E517B</entry>
    6.     <entry name="guidecolorgroupbuttonselected">FF008000</entry>
    7.     <entry name="guidecolorprogramselected">FF008000</entry>
    8.     <entry name="guidecolorprogramended">FF808080</entry>
    9.     <entry name="guidecolorborderhighlight">99FFFFFF</entry>
    10.     <entry name="defaultgenre">FF1D355B,FF0E517B</entry>
    11.     <entry name="genre1">FFD2691E,FFD2691E</entry>
    12.     <entry name="genre2">FF00FFFF,FF00FFFF</entry>
    13.     <entry name="genre3">FF800080,FF800080</entry>
    14.     <entry name="genre4">FF800000,FF800000</entry>
    15.     <entry name="genre5">FF90EE90,FF90EE90</entry>
    16.     <entry name="genre6">FFFFD700,FFFFD700</entry>
    17.     <entry name="genre7">FFFFD700,FFFFD700</entry>
    18.     <entry name="genre8">FF006400,FF006400</entry>
    19.   </section>
    20.  
    and then when you import from skinsettings.xml, you will have to map them to the genres that the user has specified (which may or may not be the default ones).

    However, if you import them from MediaPortal.xml, you would assume (but probably best to check) that the genres in genremap and in tvguidecolors match.

    How many genres is it possible to add? Is it sensible to set a limit on this (8 + the default genre)? Personally I think that any more than this makes it hard to follow, but others will probably disagree.

    What will happen if you try to import colours and the user has more genres than colours? Do you automatically match the first few?

    I guess actually the most flexible solution is to retrieve the colour from skinsettings.xml and then present a dialog showing the colour and unmapped genres and ask the user which genre they want to map to this colour! Simple and easy to follow!!!!

    Mark
     
    Last edited: May 5, 2012
    • Like Like x 1
  10. Lbr_Lion

    Lbr_Lion Extension Designer

    Joined:
    July 19, 2008
    Messages:
    243
    Likes Received:
    186
    Gender:
    Male
    Ratings:
    +204 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    I checked the sample of the Avalon skin and this is exacly what I want, but I have 2 questions:

    1: Should the binding value of the menubutton be displayed as button label? Now the button label displays always the first value of the subitem instead. (dialoglist)
    2: Can skin expressions be used in a <import> tag?

    Thanks,
     
  11. ajp8164

    ajp8164 Portal Pro

    Joined:
    January 9, 2008
    Messages:
    575
    Likes Received:
    583
    Gender:
    Male
    Occupation:
    Consulting Software Engineer
    Location:
    Atlanta, GA
    Ratings:
    +584 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Hi,

    For (1.), take a look at the wiki for MenuButton, specifically see the following elements: valueTextInButton, valueTextPrefix, and valueTextSuffix. I think this should help you.

    For (2.), no - I have a proposal topic with this capability implemented but it will not make v1.3.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!