[libadwaita/wip/exalm/backdrop: 4/24] stylesheet: Remove treeview backdrop styles




commit 3a359b3a4a5a2ed4f1962f0341252089e5176042
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Apr 29 18:13:04 2021 +0500

    stylesheet: Remove treeview backdrop styles

 src/stylesheet/_colors.scss        |  2 --
 src/stylesheet/_common.scss        |  1 -
 src/stylesheet/widgets/_trees.scss | 13 -------------
 3 files changed, 16 deletions(-)
---
diff --git a/src/stylesheet/_colors.scss b/src/stylesheet/_colors.scss
index ce1633b..c0dfc0e 100644
--- a/src/stylesheet/_colors.scss
+++ b/src/stylesheet/_colors.scss
@@ -51,10 +51,8 @@ $insensitive_borders_color: mix($borders_color, $bg_color, 80%);
 
 //colors for the backdrop state, derived from the main colors.
 $backdrop_base_color: if($variant == 'light', darken($base_color, 1%), lighten($base_color, 1%));
-$backdrop_text_color: mix($text_color, $backdrop_base_color, 80%);
 $backdrop_fg_color: mix($fg_color, $bg_color, 50%);
 $backdrop_insensitive_color: if($variant == 'light', darken($bg_color, 15%), lighten($bg_color, 15%));
-$backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
 $backdrop_borders_color: mix($borders_color, $bg_color, 80%);
 
 //special cased widget colors
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 9e41f24..98eba51 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -15,7 +15,6 @@ $window_radius: $button_radius + 3;
 $popover_radius: $button_radius + 4;
 
 $treeview_borders_color: if($variant=='light',mix($borders_color, $base_color,80%),mix($fg_color, 
$base_color, 20%));
-$treeview_backdrop_borders_color: if($variant=='light',mix($backdrop_borders_color, $base_color, 
80%),mix($backdrop_fg_color, $base_color, 20%));
 
 .background {
   color: $fg_color;
diff --git a/src/stylesheet/widgets/_trees.scss b/src/stylesheet/widgets/_trees.scss
index 2178809..9f32456 100644
--- a/src/stylesheet/widgets/_trees.scss
+++ b/src/stylesheet/widgets/_trees.scss
@@ -19,7 +19,6 @@ treeview.view {
 
     &:selected {
       color: mix($selected_fg_color, $selected_bg_color, 40%);
-      &:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
     }
   }
 
@@ -28,11 +27,6 @@ treeview.view {
     color: $treeview_borders_color;
   }
 
-  &:backdrop {
-    border-left-color: $treeview_backdrop_borders_color;
-    border-top: $treeview_backdrop_borders_color;
-  }
-
   &:drop(active) {
     box-shadow: none;
   }
@@ -88,13 +82,6 @@ treeview.view {
         }
 
         background-image: image($base_color);
-
-        &:backdrop {
-          @if $variant == 'light' {
-            color: $selected_bg_color;
-          }
-          background-color: $backdrop_base_color;
-        }
       }
     }
   }


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