Reputation: 11
I am trying to downsize GTK widgets by reducing the padding. The following works in Ubuntu 16.04 but not in later releases. In 17.04 and 17.10 the css styling has no effect on spin buttons. Other buttons are restyled as expected.
file widgets.css
* {
padding: 1px 1px;
}
button {
padding: 0px 3px;
}
entry {
padding: 0px 2px;
}
What needs to change to make it work with later GTK releases?
Upvotes: 0
Views: 1194
Reputation: 57920
For the current GTK release, check the "CSS Nodes" section of the documentation for GtkSpinButton
to see the hierarchy of nodes that you can apply CSS to. It looks like you might need to write a CSS rule for spinbutton
.
Upvotes: 1