Kodi Community Forum

Full Version: Textbox color and wrapmultiline problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I recently made a color theme builder but I have an issue.
Everything id working fine excepted 1 thing.I have a panel view for episodes that shows the title on multi lines like this :

Image

I'm using a textbox but when I set a textcolor with a string, it doesn't show (selected item on picture).
When using a fixed color it works (unselected item on picture) :

Doesn't work :

Code:
<control type="textbox">
    <left>12</left>
    <posy>183</posy>
    <width>178</width>
    <height>100</height>
    <align>left</align>
    <font>FontSmall</font>

    <textcolor>$INFO[Skin.String(Color.B1Txt2NF)]</textcolor>

    <label>$VAR[InfoTitle]</label>
</control>

Works :

Code:
<control type="textbox">
    <left>12</left>
    <posy>183</posy>
    <width>178</width>
    <height>100</height>
    <align>left</align>
    <font>FontSmall</font>

    <textcolor>FF666666</textcolor>

    <label>$VAR[InfoTitle]</label>
</control>

What's weird is that I use it outside containers too and works fine. Inside a container it doesn't.

I tried this too :

Code:
<control type="label">
    <left>12</left>
    <posy>183</posy>
    <width>178</width>
    <height>100</height>
    <align>left</align>
    <font>FontSmall</font>

    <textcolor>$INFO[Skin.String(Color.B1Txt2NF)]</textcolor>
    <wrapmultiline>true</wrapmultiline>

    <label>$VAR[InfoTitle]</label>
</control>

Since labels take the strings fine but wrapmultiline neither works.

Any idea if this is a bug or is there an alternative to get the label multi lines ?

Thanks.
Just found some posts that confirms that wrapmultiline doesn't work in containers.
Any chance to get the textcolor fixed for textboxes ?

Thanks
http://mirrors.kodi.tv/test-builds/win32...tcolor.exe should be on the mirrors in a few minutes. Note, this is just a shot in the dark and I've not tested this Wink Let's see what happens ..
(2015-05-30, 11:25)mkortstiege Wrote: [ -> ]http://mirrors.kodi.tv/test-builds/win32...tcolor.exe should be on the mirrors in a few minutes. Note, this is just a shot in the dark and I've not tested this Wink Let's see what happens ..

Then it was a precise shot Wink Works prefectly.
Many thanks for this. Nod
Great. Are there any regressions you noticed yet?
I have to make more tests to confirm but right now everything's fine. Have you something in mind ?
(2015-05-30, 11:57)Jayz2K Wrote: [ -> ]I have to make more tests to confirm but right now everything's fine. Have you something in mind ?

Nope, nothing special. Will PR the small fix later today.
I imported some schemes I made, tested sizing the texboxes, scrolling, outside / inside containers. Everything responds perfectly fine.
Could you please test if using color names (from skins .xml) still works?
Yes it does. Colors from Skin color folder too.
Awesome, thanks for testing!

EDIT: https://github.com/xbmc/xbmc/pull/7205
(2015-05-30, 12:32)mkortstiege Wrote: [ -> ]Awesome, thanks for testing!

EDIT: https://github.com/xbmc/xbmc/pull/7205

That was the least I could do Wink