[gtk: 1/4] Adwaita: Fix broken osd popover style



commit a2fdb55384b1e717a8d5e304c0b237f85faa0768
Author: nana-4 <hnmaigo gmail com>
Date:   Tue Sep 3 01:34:05 2019 +0900

    Adwaita: Fix broken osd popover style
    
    Apply %osd to child arrow and contents instead of parent popover.
    
    https://gitlab.gnome.org/GNOME/gtk/issues/2061

 gtk/theme/Adwaita/_common.scss | 71 ++++++++++++++++++++----------------------
 1 file changed, 33 insertions(+), 38 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index d5945fdca3..0432b2a243 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2187,59 +2187,54 @@ menuitem {
 
 popover.background {
   background-color: transparent;
-  padding: 0px;
-}
-
-popover.menu>arrow,
-popover>arrow {
-  background-color: $popover_bg_color;
-  border: 1px solid $borders_color;
-}
 
-popover>contents {
-  padding: 8px;
-  background-color: $popover_bg_color;
-  border: 1px solid $borders_color;
-  margin: 0px;
-}
+  > arrow,
+  > contents {
+    background-color: $popover_bg_color;
+    border: 1px solid $borders_color;
+    box-shadow: 0 1px 2px transparentize(black, 0.7);
 
-popover.background>contents {
+    &:backdrop {
+      background-color: $backdrop_bg_color;
+      border-color: $backdrop_borders_color;
+      box-shadow: none;
+    }
+  }
 
-  background-color: $popover_bg_color;
-  box-shadow: 0 1px 2px transparentize(black, 0.7);
-  .csd &, & {
-    border: 1px solid $borders_color;
+  > contents {
+    padding: 8px;
     border-radius: $popover_radius;
-  }
 
-  &:backdrop {
-    background-color: $backdrop_bg_color;
-    box-shadow: none;
+    > list,
+    > .view,
+    > toolbar {
+      border-style: none;
+      background-color: transparent;
+    }
+
+    separator { margin: 3px; }
+
+    list separator { margin: 0; }
   }
 
-  > list,
-  > .view,
-  > toolbar {
-    border-style: none;
+  .osd &,
+  &.touch-selection,
+  &.magnifier {
     background-color: transparent;
-  }
 
-  .csd &, & {
-    &.touch-selection,
-    &.magnifier {
+    > arrow,
+    > contents {
       @extend %osd;
 
       border: 1px solid transparentize(white, 0.9);
-
-      button { @extend %osd_button };
+      box-shadow: none;
     }
-
-    &.osd { @extend %osd; }
   }
 
-  separator { margin: 3px; }
-
-  list separator { margin: 0px; }
+  &.touch-selection,
+  &.magnifier {
+    button { @extend %osd_button; }
+  }
 }
 
 


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