PDA

View Full Version : Full Color Tab Icon



AndreaCammarata
4 May 2011, 2:36 AM
Hi guys,
I need some help!
Does anyone know how to set a color icon for a Tapbar button?

I've done a lot of SASS and CSS hacks but without success:
Even if I include a custom pictos color icon, in my SASS theme and then I apply it to my tab button, Sencha Touch always display it in monochromatic masked color.
There is a way to avoid this auto icon elaboration and show it with all the original colors?


Thank you guys.

MichelT
23 Oct 2011, 7:28 PM
Hi Andrea,

I'm facing the same problem atm. Did you find a solution to your problem? If yes, can you please post the steps required to reach the solution. Thank you.

myput
23 Oct 2011, 11:41 PM
hey, have you tried like the way you said me for a back button:



listeners: {
afterrender: function() {
this.toolbar.remove(this.backButton);
this.backButton = new Ext.Button({
ui: 'plain',
iconMask: true,
useTitleAsBackText: false,
iconCls: 'arrow_left',
scope: this,
handler: this.onBackTap
});
this.toolbar.add(this.backButton);
},
scope: WPApp.views.DirectoryNestedListPanel
}


But for a iconCls ?
I don't think i can be work, but ...