CodenameOne - change color of checkbox in theme

倾然丶 夕夏残阳落幕 提交于 2019-12-22 11:13:12

问题


I'm using the 'Blue Flat' theme in a cn1 project, and the checkboxes in a MultiButton component (I suppose following the Button text color) are completely white, making them invisible on a white background. I've tried changing their foreground color in the theme (in the GUI Builder theme tab), I tried replacing the theme files with checkboxes of a darker shade, but nothing seems to affect it.

How can I make the MultiButton checkbox a different color?


回答1:


The blue theme customizes the checkbox image theme constant which you can remove at which case it should derive theme colors:

https://www.codenameone.com/manual/advanced-theming.html#_theme_constants

Just select the constants tab in the theme and remove the ones relevant to the checkbox.



来源:https://stackoverflow.com/questions/37796869/codenameone-change-color-of-checkbox-in-theme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!