<textcolor2> or at least more separation
#1
Is there a way to set the distance between <label> and <label2>?

I know <textcolor2> is not available.

here's a picture of why at least separation should be more. notice the path for user defined maps/radar file. when they are the same color it makes reading difficult.

Image
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
Nuka1195 Wrote:Is there a way to set the distance between <label> and <label2>?

I know <textcolor2> is not available.

here's a picture of why at least separation should be more. notice the path for user defined maps/radar file. when they are the same color it makes reading difficult.
you can use [COLOR] tags in the label
http://wiki.xbmc.org/?title=Label_Formatting
Is that a solution for you?
Reply
#3
that's what i did, but that's skin specific and this is for script/plugin settings. so no not a solution.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
This will be being done in GUIButtonControl.cpp - feel free to take a look through there. IIRC there is some hard-coded value being used - probably just needs bumping up a bit.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
it was 5, i bumped it to 20. seems to be a good number.

Code:
Index: guilib/GUIButtonControl.cpp
===================================================================
--- guilib/GUIButtonControl.cpp (revision 26517)
+++ guilib/GUIButtonControl.cpp (working copy)
@@ -119,7 +119,7 @@
     m_textLayout.GetTextExtent(textWidth, textHeight);
     m_textLayout2.Update(label2);

-    float width = m_width - 2 * m_label.offsetX - textWidth - 5;
+    float width = m_width - 2 * m_label.offsetX - textWidth - 20;
     if (width < 0) width = 0;
     fPosX = m_posX + m_width - m_label.offsetX;
     uint32_t dwAlign = XBFONT_RIGHT | (m_label.align & XBFONT_CENTER_Y) | XBFONT_TRUNCATED;



Image
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
<textcolor2> or at least more separation0