tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.76k stars 1.21k forks source link

fix(android): fix tintColor and activeTintColor in a TabbedBar #14088

Closed m1ga closed 3 months ago

m1ga commented 4 months ago

fixes https://github.com/tidev/titanium-sdk/issues/14087

tintColor and activeTintColor are not working in a TabbedBar:

var win = Ti.UI.createWindow();
var bb1 = Ti.UI.createTabbedBar({
    top: 10,
    width : Ti.UI.FILL,
    labels: [{label:"test", image:"appicon.png"}, {label:"test", image:"appicon.png"}, {label:"test", image:"appicon.png"}]
});
win.add(bb1);

var bb2 = Ti.UI.createTabbedBar({
    width : Ti.UI.FILL,
    tintColor : '#D4AF37',
    activeTintColor : '#f00',
    labels: [{label:"test", image:"appicon.png"}, {label:"test", image:"appicon.png"}, {label:"test", image:"appicon.png"}]
});
win.add(bb2);

var btn = Ti.UI.createButton({title:"select", bottom: 10});
win.add(btn);
btn.addEventListener("click", function(e){
    bb1.index = 1;
    bb2.index = 1;
})
win.open();

12.4.0: Screenshot_20240723-181235

After PR: Screenshot_20240723-181527