[solved] - How Do I Get The Colours That I Want? | Page 4

Discussion in 'MediaPortal 1 Skins' started by CyberSimian, December 26, 2016.

Loading...
  1. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    No damage will be. It will be as it is intended by the designer. Even if he spat on the fact that it does not work.
    I agree. But if you do not make mistakes, there will be no progress. All learn to their mistakes.

    PS: Waiting for the decision of @catavolt and @wizard123. :)


     
    • Thank You! Thank You! x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. wizard123
    • Team MediaPortal

    wizard123 Design Group

    Joined:
    January 24, 2012
    Messages:
    2,499
    Likes Received:
    1,695
    Gender:
    Male
    Occupation:
    genius
    Ratings:
    +2,919 / 11
    Home Country:
    United Kingdom United Kingdom
    I would have to agree with mm1352000 here, there is no need to change any code just edit the wiki accordingly.
     
    • Thank You! Thank You! x 2
    • Agree Agree x 1
  4. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
  5. catavolt
    • Team MediaPortal
    • Administrator

    catavolt Design Group Manager

    Joined:
    August 13, 2007
    Messages:
    12,232
    Likes Received:
    4,978
    Gender:
    Male
    Occupation:
    Technical Documentation, Translation
    Location:
    Lanzarote
    Ratings:
    +7,387 / 38
    Home Country:
    Germany Germany
    Show System Specs
    Same opinion here - no change in skin engine! ;)
     
    • Thank You! Thank You! x 1
    • Add to Wiki! Add to Wiki! x 1
  6. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    :D:coffee:
     
  7. CyberSimian
    • Team MediaPortal

    CyberSimian Test Group

    Joined:
    June 10, 2013
    Messages:
    1,637
    Likes Received:
    541
    Gender:
    Male
    Location:
    Southampton
    Ratings:
    +961 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Yes, I will do this (or, at least, I will attempt it!). But not today.

    I thought this because that was what the Wiki indicated in its examples. The solution is to correct the Wiki.

    Having thought about this, I find it hard to believe that any skin designer would want to specify colours in decimal. The hardware implementation is in the form of the colour mixing of three colour planes, A designer wanting to select a colour would pick the strength of each colour component. So he might specify a hexadecimal value such as 0x808080, or specify a decimal triplet (128,128,128), but he would not want to specify the single composite decimal value 8421504.

    I am not in favour of @ajs proposal to modify the code to accept colour values beginning with "#". There are unlikely to be many existing occurrences (I found none when I scanned "Ares", and only one when I scanned "DefaultWideHD" -- in "splashscreen.xml"). Also, what would this mean:

    Code (Text):
    1. <colordiffuse>#ff404040</colordiffuse>
    You might think that it is obvious, but it is not so obvious if the designer has also coded:

    Code (Text):
    1. <define>#ff404040:Please choose the option you that want</define>
    i.e. the designer has defined a variable with a name that looks like a valid colour value. So I think that the only change that should be implemented is to update the Wiki.

    -- from CyberSimian in the UK
     
    • Agree Agree x 1
  8. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    You mean this?
    Code (XML):
    1. <textcolor>#87cefa</textcolor>
    It will work with this value.
    Code (C#):
    1. Color textColor = ColorTranslator.FromHtml(xmlNode.Value);
    https://github.com/andrewjswan/Medi...al.Application/FullScreenSplashScreen.cs#L161
    And with:
    Code (XML):
    1. <textcolor>87cefa</textcolor>
    And with:
    Code (XML):
    1. <textcolor>Blue</textcolor>
    :):whistle::coffee:

    It was possible to do so in other areas, but do not. So no. :coffee:
     
    Last edited: December 27, 2016
  9. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    This does not affect the color, exactly as long as he does not specify this property as a color value. :)

    PS: I think this saying exactly determine the result of our discussion. :coffee::)
    Code (Text):
    1. Scalded with milk, blows on the water.
     
  10. CyberSimian
    • Team MediaPortal

    CyberSimian Test Group

    Joined:
    June 10, 2013
    Messages:
    1,637
    Likes Received:
    541
    Gender:
    Male
    Location:
    Southampton
    Ratings:
    +961 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    That is an interesting statement, because it only works if prefixed with "#". If you remove the "#" (which is the conclusion reached by this thread), MP locks up and displays a pure white screen (at least, it does when using the "DefaultWideHD" splashscreen.xml on MP 1.12; I can't test MP 1.16 at the moment).

    I got this message in the MP error log:

    [2016-12-27 12:19:18,199] [Error ] [SplashScreen] [ERROR] - Error during splashscreen handling: 87cefa is not a valid value for Int32.

    Mysteries, mysteries...

    -- from CyberSimian in the UK
     
    • Thank You! Thank You! x 1
  11. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,620
    Likes Received:
    2,652
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,603 / 29
    Home Country:
    Ukraine Ukraine
    Show System Specs
    Strangely, it should work as use function: c = (Color)TypeDescriptor.GetConverter(typeof(Color)).ConvertFromString(htmlColor);
    https://referencesource.microsoft.c...ystem/Drawing/Advanced/ColorTranslator.cs,275
    Perhaps this function will convert not all values. :(
    Try:
    Code (XML):
    1. <textcolor>8900346</textcolor>

    Then, in splashscreen will always be work only:
    Code (XML):
    1. <textcolor>#87cefa</textcolor>
    and
    Code (XML):
    1. <textcolor>Blue</textcolor>
    :) ...
    But in skin, only:
    Code (XML):
    1. <textcolor>87cefa</textcolor>
    and
    Code (XML):
    1. <textcolor>Blue</textcolor>
    :)
     
Loading...
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!