gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
https://gtk-rs.org/
MIT License
1.24k stars 82 forks source link

Buttons aren't getting colored #976

Closed MGlolenstine closed 4 years ago

MGlolenstine commented 4 years ago

My buttons are loaded and my styling does get applied, as other CSS fields do get set, but buttons don't.

My CSS


label{
    font-size: 48px;
}

box {
    background-color: #888888;
}

button:active {
    background-color: #000;
}

button:hover {
    background-color: #000;
}
sdroege commented 4 years ago

This is not a bug but a support request, and also generally about GTK not specific for the bindings :) Please ask this on the GTK mailing list.

MGlolenstine commented 4 years ago

That's fair :)

MGlolenstine commented 4 years ago

If anyone's wondering how I solved it. Apparently I was loading it wrong, and I set the priority of the custom CSS lower than the priority of the fallback, so it got overriden.