2010-01-07, 23:18
2010-01-07, 23:18
2010-01-08, 07:49
Nuka1195 Wrote:Is there a way to set the distance between <label> and <label2>?you can use [COLOR] tags in the label
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.
http://wiki.xbmc.org/?title=Label_Formatting
Is that a solution for you?
2010-01-08, 08:52
that's what i did, but that's skin specific and this is for script/plugin settings. so no not a solution.
2010-01-09, 00:52
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
Cheers,
Jonathan
2010-01-09, 04:44
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;