setting themelayer TextField.selected.fgColor

10 views
Skip to first unread message

Gareth Murfin

unread,
Jul 19, 2018, 8:08:52 AM7/19/18
to CodenameOne Discussions

How do I do this themeLayer.put("TextField.fgColor", appColor);   but for selected, pressed etc?? is it just TextField.selected.fgColor ?

Shai Almog

unread,
Jul 20, 2018, 12:38:43 AM7/20/18
to CodenameOne Discussions
As such:

TextField.sel#fgColor
TextField.press#fgColor
TextField.dis#fgColor

Gareth Murfin

unread,
Aug 1, 2018, 10:35:34 AM8/1/18
to CodenameOne Discussions
Great thanks Shai, is there a way to change the border colour from code?? 

On Friday, July 20, 2018 at 12:38:43 PM UTC+8, Shai Almog wrote:
As such:

TextField.sel#fgColor
TextField.press#fgColor
TextField.dis#fgColor

Shai Almog

unread,
Aug 2, 2018, 1:36:45 AM8/2/18
to CodenameOne Discussions
That depends on the border type. You can create a new border instance and set it.
Reply all
Reply to author
Forward
0 new messages