[CLOSED] Make toolbar buttons look like regular buttons

  1. #1

    [CLOSED] Make toolbar buttons look like regular buttons

    How can I make all toolbar buttons look like regular buttons? I tried using the Standout property but the buttons loose their hover over effect.
    Last edited by Daniil; Dec 11, 2015 at 12:54 PM. Reason: [CLOSED]
  2. #2
    Hi @jchau,

    This override does the job.

    Ext.toolbar.Toolbar.override({
        onBeforeAdd: function (component) {
            var me = this;
    
            if (component instanceof Ext.toolbar.Separator) {
                component.setUI((me.vertical) ? 'vertical' : 'horizontal');
            }
    
            me.callSuper(arguments);
        }
    });
    The original onBeforeAdd is here.
    Last edited by Daniil; Dec 02, 2015 at 6:05 PM.

Similar Threads

  1. Replies: 2
    Last Post: Mar 14, 2012, 3:05 PM
  2. Replies: 0
    Last Post: Jan 16, 2012, 5:15 AM
  3. [CLOSED] Silver buttons in toolbar
    By chafikb in forum 1.x Premium Help
    Replies: 6
    Last Post: Apr 09, 2010, 12:16 PM
  4. Horizantal Scrolling of Buttons in a Toolbar?
    By yaser82 in forum 1.x Help
    Replies: 0
    Last Post: May 06, 2009, 11:46 AM
  5. Problems with toolbar buttons
    By flaviodamaia in forum 1.x Help
    Replies: 6
    Last Post: Jan 07, 2009, 4:05 PM

Posting Permissions