Codenameone - 更改对话框命令外观 [英] Codenameone - change dialog commands appearance

查看:167
本文介绍了Codenameone - 更改对话框命令外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个移动应用程序,我使用皮革主题。当我使用 Dialog.show()时,命令按钮不够明显,需要更改背景和前景。



不知道需要使用 Codename One Designer 自定义哪个组件?

解决方案

您可以将dlgButtonCommandUIID变量设置为您希望按钮采用的UIID。默认值是Button,所以自定义Button UIID应该很好。



皮革主题的按钮的背景是一个边框,如果你想改变你需要使用空边框或新边框类型替换边框样式。查看我如何?部分中涵盖这些内容的视频。 / p>

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?

解决方案

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.

这篇关于Codenameone - 更改对话框命令外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆