Page 1 of 1

Text colour for ComboDropList/StaticText (TaharezLook based)

Posted: Sun Aug 31, 2008 19:14
by dewyatt
I'm making a skin (from TaharezLook) and I'm pretty happy with it so far.
But I can't find any place to set the text colour for the ComboDropList or StaticText controls.
I guess I'm missing something.
The text is white and I need it to be black.

I searched and all I really found was:
http://www.cegui.org.uk/phpBB2/viewtopic.php?t=1984

So is it not possible to control the font color in the looknfeel for ComboDropList?
And what about StaticText?

Posted: Mon Sep 01, 2008 09:00
by CrazyEddie
The items that you add to a combo box are not skinned via the Falagard looknfeel system, and so the information / setting has to be applied via the item class itself. This can be done either by setting the text colour as in the thread you linked - perhaps via a helper 'create' function, or you could subclass ListboxTextItem and set a new default that way.

For StaticText, see http://www.cegui.org.uk/phpBB2/viewtopic.php?t=2584

CE.

Posted: Mon Sep 01, 2008 14:23
by dewyatt
Thanks, I got it looking rather nice now.