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

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

    • Team MediaPortal

    elliottmc Release Manager

    System Specs
    Hi,

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

    If I have

    Code (text):

        <control>
          <description>TvGroup button label</description>
          <type>label</type>
          <id>0</id>
          <posX>62</posX>
          <posY>730</posY>
          <valign>middle</valign>
          <label>#Radio.Guide.ChangeGroup</label>
          <font>AvalonLight16</font>
            <textcolor>ffffff</textcolor>
          <animation effect="rotate" end="90" time="0">WindowOpen</animation>
          <animation effect="rotate" end="90" time="0">WindowClose</animation>
          </control>
     
    (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
    • Team MediaPortal

    ajp8164 Thread Starter Development Group

    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.
    • Team MediaPortal

    ajp8164 Thread Starter Development Group

    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).
    • Team MediaPortal

    elliottmc Release Manager

    System Specs
    Yes, all working in 1.2.3.

    [/quote]

    Already done!

    http://forum.team-mediaportal.com/t...s-weather-settings.103616/page-18#post-864378
    • Team MediaPortal

    ajp8164 Thread Starter Development Group

    System Specs
    Already done!

    http://forum.team-mediaportal.com/t...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
    • Team MediaPortal

    elliottmc Release Manager

    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
    • Team MediaPortal

    ajp8164 Thread Starter Development Group

    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
    • Team MediaPortal

    elliottmc Release Manager

    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):

      <section name="tvguidecolors">
        <entry name="guidecolorchannelbutton">FF0E517B</entry>
        <entry name="guidecolorchannelbuttonselected">FF008000</entry>
        <entry name="guidecolorgroupbutton">FF0E517B</entry>
        <entry name="guidecolorgroupbuttonselected">FF008000</entry>
        <entry name="guidecolorprogramselected">FF008000</entry>
        <entry name="guidecolorprogramended">FF808080</entry>
        <entry name="guidecolorborderhighlight">99FFFFFF</entry>
        <entry name="defaultgenre">FF1D355B,FF0E517B</entry>
        <entry name="Documentary">FFD2691E,FFD2691E</entry>
        <entry name="Kids">FF00FFFF,FF00FFFF</entry>
        <entry name="Movie">FF800080,FF800080</entry>
        <entry name="Music">FF800000,FF800000</entry>
        <entry name="News">FF90EE90,FF90EE90</entry>
        <entry name="Other">FFFFD700,FFFFD700</entry>
        <entry name="Special">FFFFD700,FFFFD700</entry>
        <entry name="Sports">FF006400,FF006400</entry>
      </section>
     
    However, the skin author won't know what genres I want to use, so they will probably have to do something like

    Code (text):

      <section name="tvguidecolors">
        <entry name="guidecolorchannelbutton">FF0E517B</entry>
        <entry name="guidecolorchannelbuttonselected">FF008000</entry>
        <entry name="guidecolorgroupbutton">FF0E517B</entry>
        <entry name="guidecolorgroupbuttonselected">FF008000</entry>
        <entry name="guidecolorprogramselected">FF008000</entry>
        <entry name="guidecolorprogramended">FF808080</entry>
        <entry name="guidecolorborderhighlight">99FFFFFF</entry>
        <entry name="defaultgenre">FF1D355B,FF0E517B</entry>
        <entry name="genre1">FFD2691E,FFD2691E</entry>
        <entry name="genre2">FF00FFFF,FF00FFFF</entry>
        <entry name="genre3">FF800080,FF800080</entry>
        <entry name="genre4">FF800000,FF800000</entry>
        <entry name="genre5">FF90EE90,FF90EE90</entry>
        <entry name="genre6">FFFFD700,FFFFD700</entry>
        <entry name="genre7">FFFFD700,FFFFD700</entry>
        <entry name="genre8">FF006400,FF006400</entry>
      </section>
     
    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
    • Like Like x 1
    • Premium Supporter

    Lbr_Lion Extension Designer

    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,
    • Team MediaPortal

    ajp8164 Thread Starter Development Group

    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.

Share This Page

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

Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners