Results 1 to 2 of 2

Thread: Having difficulty setting active icon colour in tabpanel v2.2

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    454
    Answers
    19
    Vote Rating
    22
      0  

    Default Having difficulty setting active icon colour in tabpanel v2.2

    Hi,

    I've been getting my head around the new changes required for theming in touch 2.2, however I'm having difficulty changing the colour of an active item in a tabpanel....it seems with the new picto font it is impossible to change the active colour! I've tried many variations. I can change the picto font color of non active items in a tab using this CSS:

    Code:
    .x-tabbar.x-docked-bottom .x-tab .x-button-icon.x-shown {
    color: #000;
    }
    I can't seem to change the active icon color, I've tried lots of different combinations, including:

    Code:
    .x-tabbar-light .x-tab-active {
      color: black;
      background-color: black;
    }
    
    .x-tabbar-dark .x-tab-active {
      color: black;
      background-color: black;
    }
    
    .x-tabbar-light.x-docked-bottom .x-tab-active {
      color: black;
      background-color: black;
    }

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    I did something like this:

    Code:
    .x-tabbar-dark .x-tab-active .x-button-icon:before {
        color : #f00;
    }
    to change the color of the icon for

    Code:
    Ext.Viewport.add({
        xtype : 'tabpanel',
        items : [
            {
                title   : 'Foo',
                iconCls : 'home'
            }
        ]
    });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •