How to change default text color of application?

2019-09-03 19:21发布

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

1条回答
【Aperson】
2楼-- · 2019-09-03 19:53

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.

查看更多
登录 后发表回答