Codenameone - change dialog commands appearance

本秂侑毒 提交于 2019-12-24 20:13:30

问题


I have developed a mobile application, and I used leather theme. when i use Dialog.show() the command buttons are not visible enough and I need to change the background and foreground.

Actually I am not sure which component I need to customize with Codename One Designer?


回答1:


In the theme constants tab you can set the dlgButtonCommandUIID variable to the UIID you want the buttons to take. The default is Button so customizing the Button UIID should work just fine.

Background for the buttons in the leather theme is a border, if you want to change that you need to override the Border style with an empty border or a new border type. Check out the videos in the How Do I? section that cover these things.



来源:https://stackoverflow.com/questions/20309601/codenameone-change-dialog-commands-appearance

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