如何在CN1中更改右侧菜单图标大小?

huangapple go评论89阅读模式
英文:

How to change right side menu icon size in cn1?

问题

I couldn't figure out how to customize it (change the size, color...) of the menu icon (3 horizontal lines). It's small, I need to increase the size.

我无法弄清楚如何自定义菜单图标(3条水平线)的大小、颜色等。它太小了,我需要增加大小。

I saw this question https://stackoverflow.com/questions/41428512/how-to-change-menu-icon-size-in-codename-one-toolbar but it's too old and I didn't find the 'menuImageSize' theme constant, although it appears in the documentation.

我看到了这个问题https://stackoverflow.com/questions/41428512/how-to-change-menu-icon-size-in-codename-one-toolbar,但它太旧了,我没有找到“menuImageSize”主题常量,尽管它出现在文档中。

menuImageSize not appear

英文:

I couldn't figure out how to customize it(change the size, color...) of the menu icon (3 horizontal lines). It's small, I need to increase the size.

I saw this question <https://stackoverflow.com/questions/41428512/how-to-change-menu-icon-size-in-codename-one-toolbar> but it's too old and I didn't find the 'menuImageSize' theme constant, although it appears in the documentation.

menuImageSize not appear

答案1

得分: 1

你还可以使用样式来自定义它。请查看此应用的仪表板汉堡图标FeaturesCN

以及这些实现;汉堡命令样式

由于你的汉堡在右边,请使用

tb.addCommandToRightBar(menuCmd);

而不是

tb.addCommandToLeftBar(menuCmd);
英文:

You can also use Style to customize it. See dashboard's hamburger icon of this app FeaturesCN.

And these implementations; hamburger command and Styling

Since your hamburger is on the right use

tb.addCommandToRightBar(menuCmd);

instead of

tb.addCommandToLeftBar(menuCmd);

答案2

得分: 0

这仍然应该在年代上没有问题。您可以编辑组合框中的值。请注意,我们建议现在使用CSS进行工作。

英文:

It should still work fine despite the age. You can edit the value in the combo box. Notice we recommend working with CSS nowadays.

huangapple
  • 本文由 发表于 2023年5月25日 20:49:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/76332447.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定