Jump to content

How make TUniToolButton flat?


uniguisyriusz

Recommended Posts

Is it possible to set TUniToolButton on hover background to single color? Normally when mouse cursor is over toolbar button its background is painted with gradient, also toolbar is painted with gradient, but after set its color property it is painted with single color. I want to do the same thing with toolbar buttons backround when mouse is over button.

Link to comment
Share on other sites

maybe can use css

function beforeInit(sender, config)
{
  config.baseCls="btn";
  config.cls="success";
}

My problem is, How can I change TUniToolButton.Font.Color. In css not not change this. I have to change toolbar's font's color. At this point, this override all parent's color. How to change this?

Link to comment
Share on other sites

Maybe the pictures will explain it better.

Description of attachments:

toolbar.png - standard toolbar

toolbar.PNG

toolbar_witth_color.png - toolbar with property color set to clGray

toolbar_with_color.PNG

toolbar_mouse_over_button_standard.png - toolbar button with mouse over

toolbar_mouse_over_button_standard.png

toolbar_mouse_over_button_how_to_do.png - example of expected effect with mouse over toolbar button (orange background of toolbar button when mouse cursor is over button)

toolbar_mouse_over_button_how_to_do.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...