Hi,
I like to change the font color of a button when I move my mouse over it.
To achieve this I changed the css:
.x-btn {
background: white !important;
}
.x-btn-over {
background: black !important;
}
But this doesn't work.
1. Modified CSS:
.button1 {
background:white !important;
border: 2px solid #4CAF50;
}
.button1:hover {
background:#4CAF50 !important;
border: 2px solid #4CAF50;
color: white !important;
transition-duration: 0.5s;
}
.customHover .x-btn-inner {
color: white !important;
font: italic small-caps bold 12px/30px Georgia, serif;
transition-duration: 0.5s;
}
2. Do not forget
procedure TMainForm.UniFormCreate(Sender: TObject);
begin
UniButton1.JSInterface.JSConfig('overCls'