Styling GTK Buttons #185
-
Hi. I made, for example, this simple widget:
this code should create an orange button, with teal text, that when hovered becomes aqua. I just wanted to ask if some of you know about what may be the problem. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
.testbutton {
color: #E5EBE2;
background-color: #9D4A2E;
}
.testbutton:hover {
background-color: aqua;
} |
Beta Was this translation helpful? Give feedback.
button
in css selects every button. There is probably another css selector which has priority.you have added
testbutton
as a classname, so you might want to use that in your css: