Results 1 to 3 of 3

Thread: How to change button color, only if this button is situated on TitleBar?

  1. #1
    Sencha User
    Join Date
    Aug 2017
    Posts
    6
    Vote Rating
    0
      0  

    Default How to change button color, only if this button is situated on TitleBar?

    Dear colleagues,
    i'm new to ExtJS, reading now everything about it, but cannot understand how to do the following simple thing:

    say, I have a dark-blue toolbar, and I need that buttons situated on TitleBar have $button-color: #fff;
    and some another color in all other cases, like on the attached image.

    What's the right way to do it?

    Thank you very much in advance!

    button_on_titlebar_color.png

  2. #2
    Sencha - Ext JS Dev Team
    Join Date
    Mar 2016
    Posts
    64
    Answers
    20
    Vote Rating
    2
      1  

    Default

    Hello,

    I believe what you are describing is best solved with a UI. You can create a button UI that sets the color to #fff, then set the 'ui' property of the button you need white to the name of the UI you created in Themer.

    https://docs.sencha.com/extjs/6.5.0/...on.html#cfg-ui

  3. #3
    Sencha User
    Join Date
    Aug 2017
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Dan, thank you very much!

Similar Threads

  1. segmented button color change of pressed button
    By manoveg in forum Sencha Touch 1.x: Q&A
    Replies: 5
    Last Post: 22 Apr 2013, 1:54 AM
  2. how to change button's icon color and change options panel's position
    By kafka0102 in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 6 Jun 2012, 5:44 AM
  3. button in titlebar to change the browser url.....
    By premkumarsingh in forum Sencha Touch 2.x: Q&A
    Replies: 7
    Last Post: 30 Apr 2012, 10:08 PM
  4. Change button color
    By jlanzac in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 20 Jul 2010, 2:37 PM

Posting Permissions

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