Jump to content

Button Hover Caption Color


mikromundo

Recommended Posts

10 hours ago, mikromundo said:

I want to change caption color to white on hover but when buttons are "big" do not work.

One possible solution:

1. CustomCSS:

...

.customOver .x-btn-inner {
    color: white !important;
}

2. 

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  btnRedOutL.JSInterface.JSConfig('overCls', ['customOver']);
end;

 

Link to comment
Share on other sites

22 hours ago, mikromundo said:

Can you help me with this CSS ?

.ButtonOutline  { 
    padding: 0; 
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    -webkit-transition: background 0.3s ease-in-out;
    transition: background 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 0;
}
.ButtonRound {
    border-radius: .30em !important;
}

.ButtonOutlineBlue {
    background-color: white;
    border: 2px solid blue;
}
.ButtonOutlineBlue:focus {
    background:#042f6e !important;
    box-shadow: 2px 2px 5px #E0E0E0;
    text-decoration:none;
    border: 2px solid blue;
}
.ButtonOutlineBlue:hover {
    background:#042f6e !important;
    box-shadow: 2px 2px 5px #E0E0E0;
    text-decoration:none;
    border: 2px solid blue;
}
.ButtonOutlineBlue:active {
    background:#042f6e !important;
    font-weight: bold;
    box-shadow: 2px 2px 5px #E0E0E0;
    border:2px solid gray !important;
}

.btn-font-blue .x-btn-inner { color: inherit; }
.btn-font-blue:hover { color: white; }
.btn-font-blue{ color: blue; }

 

Link to comment
Share on other sites

On 6/17/2022 at 4:08 PM, Gustavo_GRSoft said:

i am using TUniSpeedButton with DOWN property enabled, when DOWN=True I want it to change the background color of the button.

Hello,

Which build of UniGUI are you using? Do you have a simple testcase to check?

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...