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

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

Loading...
  1. 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 am on 1.16pre i was just stating simply without the # it won't work i.e eaeaea or ffeaeaea or 99eaeaea will not work that's all


     
    • Agree Agree x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. 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
    It can work (for values like 8900346), but more often, the error will occur.. Will work with # and with color names. Like: Blue, White etc...
     
    • Thank You! Thank You! x 1
  4. 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
    Ah, sorry for my comment before - you´re absolutely right - ajs only added the x/y positioning and did not change the colour coding ;)
     
    • Thank You! Thank You! x 1
    • Agree Agree x 1
  5. 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
    He can do this. But then he would make changes in the skin engine (color definition). :):coffee:
     
  6. Threadmarks: Solution for color withot # in splashscreen (Not done)
    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
    Like: https://github.com/MediaPortal/Medi...al.Application/FullScreenSplashScreen.cs#L160
    Code (C#):
    1. if (xmlNode != null)
    2. {
    3.   string valueText = xmlNode.Value;
    4.   if (!string.IsNullOrEmpty(valueText))
    5.   {
    6.     bool isNamedColor = false;
    7.  
    8.     if (valueText[0] == '#' && valueText.Length > 1)
    9.     {
    10.       valueText = valueText.Substring(1);
    11.     }
    12.  
    13.     foreach (char ch in valueText)
    14.     {
    15.       if (ch >= '0' && ch <= '9' || ch >= 'A' && ch <= 'F' || ch >= 'a' && ch <= 'f')
    16.       {
    17.         continue;
    18.       }
    19.  
    20.       isNamedColor = true;
    21.       break;
    22.     }
    23.  
    24.     if (!isNamedColor)
    25.     {
    26.       valueText = "#" + valueText;
    27.     }
    28.  
    29.     try
    30.     {
    31.       Color textColor = ColorTranslator.FromHtml(valueText);
    32.       Log.Debug("FullScreenSplash: TextColor value found: {0}", textColor);
    33.       lblMain.ForeColor = textColor;
    34.       lblVersion.ForeColor = textColor;
    35.       lblCVS.ForeColor = textColor;
    36.       Log.Debug("FullScreenSplash: TextColor successfully set: {0}", textColor);
    37.     }
    38.     catch
    39.     {
    40.       Log.Debug("FullScreenSplash: TextColor set failed: {0}", valueText);
    41.     }
    42.   }
    43. }
    No exception, splash always work and all color support ...
     
    • Thank You! Thank You! x 1
  7. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    Can you please explain this in more detail?
     
    • Thank You! Thank You! 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
    SplashScreen not equal FullSplashScreen and not equal GUIWindow
    FullSplashScreen not equal GUIWindow
    MP Window equal GUIWindow
    MP Window work according to the rules skins engine. Support all controls ...
    FullSplashScreen not work according to the rules skins engine. Support couple controls. Picture and text. Text supports quite a few properties and their values are not such as to control in GUI Window.
    SplashScreen Not adjusted at all.
    That such a leapfrog. :):whistle::coffee:
     
    • Thank You! Thank You! x 1
  9. 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
    It seems to me that the situation is this: without changing any MP C++ or C# code, there are two choices for "splashscreen.xml":

    (1) Use a notation that is valid everywhere within MP.

    (2) Use a notation that is not valid everywhere within MP.

    For those who have lost track of this discussion, the notation that is valid everywhere within MP means using named colours, such as "lightblue" or "ivory". I would also add an XML comment to the file saying that "Only named colours can be used in this file", to avoid a different set of people having this discussion again five years from now.

    -- from CyberSimian in the UK
     
  10. 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
  11. 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
    First of all you´re a bit wrong ;)
    1. Not only named colours are allowed in all screens (except splashscreen), but also ARGB values ;)
    2. As splashscreen is an exception to all (and also well known by all skinners), there shouldn´t be any need of any comment (because in splashscreen.xml we use #RGB) ;)
    3. The discussion was raised by you only, other skinners were already aware of the things discussed here ;)
     
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!