[gtk: 1/2] Adwaita: Fix and simplify infobar styling



commit 2afd10b537440bcb1805a4b2e7cde734a3129d64
Author: nana-4 <hnmaigo gmail com>
Date:   Sat Apr 18 15:14:53 2020 +0900

    Adwaita: Fix and simplify infobar styling
    
    - Apply sizing regardless of style class.
    - Fix bottom border not reaching the bottom corners.
    - Remove unnecessary style overrides that should have been removed
      during the redesign.

 gtk/theme/Adwaita/_common.scss | 54 +++++++-----------------------------------
 1 file changed, 8 insertions(+), 46 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index f92ae171c9..2538278922 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3814,63 +3814,25 @@ video {
  * GtkInfoBar *
  **************/
 infobar {
-  border-style: none;
+  > revealer > box {
+    padding: 8px;
+    border-spacing: 12px;
+  }
 
-  &.action:hover {
+  &.action:hover > revealer > box {
       background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 47%), 30%),
                         desaturate(darken(invert($selected_bg_color), 42%), 70%));
-      border-color: lighten($borders_color, 10%);
   }
+
   &.info,
   &.question,
   &.warning,
   &.error {
-    &:backdrop, & {
-      label, & { color: $fg_color; }
-      background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%), 
-                        desaturate(darken(invert($selected_bg_color),40%), 70%));
-      border-color: lighten($borders_color, 10%);
-    }
-
-    text-shadow: none;
-
-    &:backdrop { text-shadow: none; }
     > revealer > box {
-      padding-top: 8px; padding-bottom: 8px;
       border-bottom: 1px solid lighten($borders_color, 5%);
-      border-spacing: 12px;
-    }
-    > revealer { padding-left: 8px; padding-right: 8px; }
-
-    button {
-      // FIXME: extend selection mode buttons
-      @include button(normal, $bg_color, $fg_color, none);
-
-      &:hover { @include button(hover, $bg_color, $fg_color, none); }
-
-      &:active,
-      &:checked { @include button(active, $bg_color, $fg_color, none); }
-
-      &:disabled { @include button(insensitive,$bg_color,$fg_color,none); }
-
-      &:backdrop {
-        @include button(backdrop, $bg_color, $fg_color, none);
-        border-color: _border_color($bg_color);
-
-        &:disabled {
-          @include button(backdrop-insensitive, $bg_color,
-                          $fg_color, none);
-          border-color: _border_color($bg_color);
-        }
-      }
-      &:backdrop, & {
-        label, & { color: $fg_color; }
-      }
+      background-color: if($variant == 'light', desaturate(lighten(invert($selected_bg_color), 45%), 30%), 
+                        desaturate(darken(invert($selected_bg_color), 40%), 70%));
     }
-
-    selection { background-color: darken($bg_color, 10%); }
-
-    *:link { color: $link_color; }
   }
 }
 


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