Adwaita: Just use .menu, instead of .appmenu
No need for this one-off class, there's no other menus that could show up here.
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
* ├── box.start
|
||||
* │ ╰── box
|
||||
* │ ├── [image.titlebutton.icon]
|
||||
* │ ├── [menubutton.titlebutton.appmenu]
|
||||
* │ ├── [menubutton.titlebutton.menu]
|
||||
* │ ├── [button.titlebutton.minimize]
|
||||
* │ ├── [button.titlebutton.maximize]
|
||||
* │ ╰── [button.titlebutton.close]
|
||||
@@ -406,7 +406,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
|
||||
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
|
||||
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), menu);
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (button), "titlebutton");
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (button), "appmenu");
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (button), "menu");
|
||||
image = gtk_image_new ();
|
||||
gtk_menu_button_add_child (GTK_MENU_BUTTON (button), image);
|
||||
gtk_widget_set_can_focus (button, FALSE);
|
||||
|
||||
@@ -4576,7 +4576,7 @@ button.titlebutton {
|
||||
|
||||
@include _button_text_shadow;
|
||||
|
||||
&:not(.appmenu) {
|
||||
&:not(.menu) {
|
||||
border-radius: 9999px;
|
||||
-gtk-outline-radius: 9999px;
|
||||
padding: 6px;
|
||||
|
||||
@@ -1889,7 +1889,7 @@ messagedialog.csd decoration { border-radius: 8px; box-shadow: 0 1px 2px rgba(0,
|
||||
|
||||
button.titlebutton { text-shadow: 0 -1px rgba(0, 0, 0, 0.834353); -gtk-icon-shadow: 0 -1px rgba(0, 0, 0, 0.834353); }
|
||||
|
||||
button.titlebutton:not(.appmenu) { border-radius: 9999px; -gtk-outline-radius: 9999px; padding: 6px; margin: 0 2px; min-width: 0; min-height: 0; }
|
||||
button.titlebutton:not(.menu) { border-radius: 9999px; -gtk-outline-radius: 9999px; padding: 6px; margin: 0 2px; min-width: 0; min-height: 0; }
|
||||
|
||||
button.titlebutton:backdrop { -gtk-icon-shadow: none; }
|
||||
|
||||
|
||||
@@ -1905,7 +1905,7 @@ messagedialog.csd decoration { border-radius: 8px; box-shadow: 0 1px 2px rgba(0,
|
||||
|
||||
button.titlebutton { text-shadow: 0 1px rgba(255, 255, 255, 0.769231); -gtk-icon-shadow: 0 1px rgba(255, 255, 255, 0.769231); }
|
||||
|
||||
button.titlebutton:not(.appmenu) { border-radius: 9999px; -gtk-outline-radius: 9999px; padding: 6px; margin: 0 2px; min-width: 0; min-height: 0; }
|
||||
button.titlebutton:not(.menu) { border-radius: 9999px; -gtk-outline-radius: 9999px; padding: 6px; margin: 0 2px; min-width: 0; min-height: 0; }
|
||||
|
||||
button.titlebutton:backdrop { -gtk-icon-shadow: none; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user