What you need to do is define a new ui type using SASS and COMPASS. So, you should be familiar with these structures. If you already installed them, and already know how to create a CSS application theme, you can add the following line to your theme .sass file to define a custom ui
@include sencha-tabbar-ui('myUI', $tabs-myUI, $tabs-bar-gradient, $tabs-myUI-active);
As you can see, I use some variables to set the desired style. More details:
- $ tabs-myUI: Is the base color for the user interface tabs "myUI".
- $ tabs-bar-gradient: Background gradient style for tab stripes.
- $ tabs-myUI-active: active color for the UI tab is light.
You can determine how many different user interfaces you want and use them in your code as follows:
new Ext.TabPanel({ fullscreen: true, cardSwitchAnimation: 'slide', ui: 'myUI', items: [home, about] });
This is the official Sencha way of doing this.
Hope this helps.
source share