How to change default text color of application?

旧城冷巷雨未停 提交于 2019-12-25 08:42:45

问题


How can I set text color of all Fields to white?


回答1:


AFAIK, there is no such option in BB API. You can only override Field.paint(Grahpics grahpics), smth like this:

...
public void paint(Grahpics grahpics) {
    int initialColor = grahpics.getColor(); // just in case
    grahpics.setColor(Color.WHITE);
    super.paint(grahpics);
    grahpics.setColor(initialColor);
}
...

So you could create a set of custom white-colored Fields (WhiteLabelField, WhiteEditField, etc.) and use them istead of the originals.



来源:https://stackoverflow.com/questions/5834707/how-to-change-default-text-color-of-application

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