You can use addThemeProps() to add a theme layer on top e.g. this guy used 
it to increase font size:

https://stackoverflow.com/questions/48851909/codename-one-modify-a-font-size-in-a-theme-like-in-an-hashtable

Color is even simpler as its just a HEX RGB string e.g. "ffffff" so you can 
code it as

HashMap themeLayer = new HashMap();
themeLayer.put("MyComponent.bgColor", "cccccc");
UIManager.getInstance().addThemeProps(themeLayer);
form.refreshTheme();


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/8d978b97-ebca-4f31-9fe9-9c41a12e9c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to