Help for css - how to style custom widgets #33
Answered
by
JakeStanger
JustSimplyKyle
asked this question in
Q&A
-
|
|
Beta Was this translation helpful? Give feedback.
Answered by
JakeStanger
Nov 5, 2022
Replies: 1 comment 1 reply
-
|
This is what the You could currently target your restart button with I would advise having a read-up or watching some videos on some CSS selector basics. There's not too much to them and they'll get you a long way. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JakeStanger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

This is what the
nameandclassproperties on each widget object are for. In GTK CSS, names work like IDs, and classes work the same way as ever.You could currently target your restart button with
.power-btn:nth-child(2)or by adding a name and then something like#restart.I would advise having a read-up or watching some videos on some CSS selector basics. There's not too much to them and they'll get you a long way.