Results 1 to 5 of 5

Thread: CHANGING THE COLOR OF ICON IN BUTTON

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Madagascar
    Posts
    24
    Vote Rating
    0
      0  

    Default CHANGING THE COLOR OF ICON IN BUTTON

    Hi, I want to change the color of my icon only in yellow. how should I do. Here is my code

    Code:
    ...
    xtype: container,
    ui: 'neutral'
    items:[{
        xtype: 'button'
        iconMask : true,
        iconCls: 'maintain',    
    }]

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    iconMask will put a webkit mask over the button therefore making it be black/white (depending on ui)
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Madagascar
    Posts
    24
    Vote Rating
    0
      0  

    Default

    ouch, so I another word it's just impossible

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    It's possible. Just don't use iconMask and possibly some CSS.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Location
    Madagascar
    Posts
    24
    Vote Rating
    0
      0  

    Default

    But, if I don't use iconMask the icon doesn't appear

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
  •