Button
Basics
You can create a simple button :




Interaction
The main interaction with a button is clicking it. You handle this interaction by hooking to the clicked event :
Icon button
You can create a button with just an icon :
![]()
![]()
![]()
![]()
Icons
Refer to this page regarding available icons.
Appearance
CSS classes
There are several libAdwaita CSS classes enabling button styling.
Add a CSS class to a widget
| CSS class | GNOME White | GNOME White High Contrast | GNOME Dark | GNOME Dark Hight Contrast |
|---|---|---|---|---|
flat |
![]() |
![]() |
![]() |
![]() |
pill |
![]() |
![]() |
![]() |
![]() |
accent |
![]() |
![]() |
![]() |
![]() |
circular |
![]() |
![]() |
![]() |
![]() |
suggested-action |
![]() |
![]() |
![]() |
![]() |
destructive-action |
![]() |
![]() |
![]() |
![]() |























