View Full Version : How to change button color, only if this button is situated on TitleBar?

5 Sep 2017, 6:42 AM
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!


6 Sep 2017, 7:39 AM

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.


13 Sep 2017, 10:35 PM
Dan, thank you very much!