[gtk/wip/jimmac/industrial-style-menuitems] WIP: Adwaita: revert edge-to-edge menuitems




commit 5339c85c27aa9733143c9519397bae9c293dc10a
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Nov 17 01:07:24 2020 +0100

    WIP: Adwaita: revert edge-to-edge menuitems
    
    - use the old Industrial style menuitems to make the design feel purposeful
    - adjust corners to have compatible border-radii of child elements
    
    Implements https://gitlab.gnome.org/GNOME/gtk/-/issues/3366

 gtk/theme/Adwaita/_common.scss | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 68dd817677..2a58844110 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3441,11 +3441,14 @@ separator.sidebar {
  **********************/
 
 .navigation-sidebar {
+  padding: $menu_radius 0; // interfer with width computing
 
   > row {
     // Needs overriding of the GtkListBoxRow padding
     min-height: 36px;
-    padding: 0px 8px;
+    padding: 0px 2px;
+    border-radius: $menu_radius - 1;
+    margin: 0 $menu_radius;
 
     // Using margins/padding directly in the SidebarRow
     // will make the animation of the new bookmark row jump
@@ -4177,7 +4180,7 @@ popover.menu {
   & > arrow,
   &.background > contents {
     background-color: $menu_color;
-    padding: 0;
+    padding: $menu_radius;
   }
 
   &.background separator {
@@ -4221,8 +4224,8 @@ popover.menu {
   modelbutton {
     min-height: 30px;
     min-width: 40px;
-    padding: $_menu-padding/6 $_menu-padding;
-    border-radius: 0;
+    padding: 0 $_menu-padding;
+    border-radius: $menu_radius - 1;
 
     &:selected {
       color: $text-color;
@@ -4262,7 +4265,7 @@ menubar {
   }
 
   & > item popover.menu.background > contents {
-    padding: 0;
+    padding: $menu_radius;
   }
   //nested submenus
   & > item popover.menu popover.menu {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]