summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-01-26 00:17:08 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-01-26 00:20:23 -0500
commit1cebc4316ba0554a10ee1c10e0ef868ba7076cea (patch)
treee87363aea31bc34c794251d0c89e3aea7cdc9ead
parent20895d6f3f37c1bef4b8a02e3531e265f253ddd2 (diff)
downloadgtk+-circular-menubutton.tar.gz
Allow circular menubuttonscircular-menubutton
Fixes #3523
-rw-r--r--gtk/gtkmenubutton.c3
-rw-r--r--gtk/theme/Adwaita/_common.scss1
2 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 255a11c658..7204544830 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -120,6 +120,9 @@
* the menu will appear in. The CSS is expected to provide a suitable
* image for each of these cases using the -gtk-icon-source property.
*
+ * Optionally, the menubutton node can carry the .circular style class
+ * to request a round appearance.
+ *
* # Accessibility
*
* GtkMenuButton uses the #GTK_ACCESSIBLE_ROLE_BUTTON role.
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 05877b1dc7..77790d7528 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -746,6 +746,7 @@ button {
.linked.vertical > & { @extend %linked_vertical; }
+ menubutton.circular &,
&.circular { // force circular button shape
min-width: 32px;
min-height: 32px;