[epiphany/wip/exalm/elementary5: 3/5] theme: Make search counter style generic



commit 87d4f1b5560b9716f14666f56390476dce6db840
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Sep 23 22:43:13 2019 +0500

    theme: Make search counter style generic
    
    Move it to shared, remove background instead of making it white. Remove
    box-shadow change text color with transparency instead of mixing.

 src/resources/themes/_Adwaita-base.scss | 10 ----------
 src/resources/themes/_shared-base.scss  | 13 +++++++++++++
 2 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/src/resources/themes/_Adwaita-base.scss b/src/resources/themes/_Adwaita-base.scss
index db3b1936c..6c48bb344 100644
--- a/src/resources/themes/_Adwaita-base.scss
+++ b/src/resources/themes/_Adwaita-base.scss
@@ -338,16 +338,6 @@ window:not(.incognito-mode) .main-notebook tab:not(.reorderable-page) {
   }
 }
 
-
-.search-entry-occurrences-tag {
-  background-color: themecolor(theme_base_color);
-  background-image: none;
-  color: shade(themecolor(theme_unfocused_fg_color), 0.8);
-  border: 0px;
-  margin: 2px;
-  padding: 2px;
-}
-
 .tab-attention {
   $_dot_color: if($variant=='light', $selected_bg_color,
                                    lighten($selected_bg_color,15%));
diff --git a/src/resources/themes/_shared-base.scss b/src/resources/themes/_shared-base.scss
index 9c297fe89..41d7b110c 100644
--- a/src/resources/themes/_shared-base.scss
+++ b/src/resources/themes/_shared-base.scss
@@ -154,3 +154,16 @@
   margin-right: 12px;
   margin-bottom: 12px;
 }
+
+.search-entry-occurrences-tag {
+  background: none;
+  color: gtkalpha(themecolor(theme_fg_color), 0.5);
+  box-shadow: none;
+  border: none;
+  margin: 2px;
+  padding: 2px;
+
+  &:backdrop {
+    color: gtkalpha(themecolor(theme_unfocused_fg_color), 0.5);
+  }
+}


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