Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TideSDK: is there a way to style menus?

I was working with TidSDK's menus...

var menu2 = Ti.UI.createMenu();

//Create menu items
var subMenu1 = menu2.addItem('',function(){history.back();},'back.png');

Ti.UI.currentWindow.setMenu(menu2);

And I was wondering: is there a way to style them? Like height, width, background, icon-size, etc.

like image 932
Gwen Hufschmid Avatar asked Dec 29 '25 17:12

Gwen Hufschmid


1 Answers

Unfortunately: no. The native menus are bound to the systems style. If a user changes the theme of his OS, the native menus in a TideSDK app will change their look, too.

If you want to have full styleable window/context menus, you will have to create them with HTML/CSS and control them via JavaScript.

like image 124
Christian Engel Avatar answered Jan 01 '26 07:01

Christian Engel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!