home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Skins
How Do I Get The Colours That I Want?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ajs" data-source="post: 1205427" data-attributes="member: 68833"><p>Here it is a small change will not affect the skins work, and will work just as described in the wiki.</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/guilib/GUIControlFactory.cs#L265-L278" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/guilib/GUIControlFactory.cs#L265-L278</a></p><p>[code=csharp] if (valueText.Length > 0)</p><p> {</p><p> bool isNamedColor = false;</p><p> bool isSharp = false;</p><p></p><p> if (valueText[0] == '#' && valueText.Length > 1)</p><p> {</p><p> valueText = valueText.Substring(1);</p><p> isSharp = true;</p><p> }</p><p></p><p> foreach (char ch in valueText)</p><p> {</p><p> if (ch >= '0' && ch <= '9' || ch >= 'A' && ch <= 'F' || ch >= 'a' && ch <= 'f')</p><p> {</p><p> continue;</p><p> }</p><p></p><p> isNamedColor = true;</p><p> break;</p><p> }</p><p></p><p> if (isNamedColor && isSharp) // Property</p><p> {</p><p> valueText = "#" + valueText;</p><p> }[/code]</p><p>Then the color specified in the skins as #AARRGGBB, AARRGGBB operate the same.</p><p></p><p>[USER=141969]@CyberSimian[/USER] [USER=54906]@catavolt[/USER]</p><p>Make JIRA Ticket? Make Corrections? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite27" alt=":whistle:" title="Whistling :whistle:" loading="lazy" data-shortname=":whistle:" /><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite29" alt=":coffee:" title="Coffee :coffee:" loading="lazy" data-shortname=":coffee:" /></p><p></p><p></p><p>In MP Wiki, Color can have a value:</p><ul> <li data-xf-list-type="ul">Hex values in the format #RRGGBB</li> <li data-xf-list-type="ul">Hex values in the format #AARRGGBB</li> <li data-xf-list-type="ul">Named colors</li> </ul><p>No decimal, only hexadecimal for non named color ... <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="ajs, post: 1205427, member: 68833"] Here it is a small change will not affect the skins work, and will work just as described in the wiki. [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/guilib/GUIControlFactory.cs#L265-L278[/URL] [code=csharp] if (valueText.Length > 0) { bool isNamedColor = false; bool isSharp = false; if (valueText[0] == '#' && valueText.Length > 1) { valueText = valueText.Substring(1); isSharp = true; } foreach (char ch in valueText) { if (ch >= '0' && ch <= '9' || ch >= 'A' && ch <= 'F' || ch >= 'a' && ch <= 'f') { continue; } isNamedColor = true; break; } if (isNamedColor && isSharp) // Property { valueText = "#" + valueText; }[/code] Then the color specified in the skins as #AARRGGBB, AARRGGBB operate the same. [USER=141969]@CyberSimian[/USER] [USER=54906]@catavolt[/USER] Make JIRA Ticket? Make Corrections? :whistle::coffee: In MP Wiki, Color can have a value: [LIST] [*]Hex values in the format #RRGGBB [*]Hex values in the format #AARRGGBB [*]Named colors [/LIST] No decimal, only hexadecimal for non named color ... :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Skins
How Do I Get The Colours That I Want?
Contact us
RSS
Top
Bottom