[libadwaita/wip/exalm/view-color] stylesheet: Unify @view_fg_color with the other fg colors




commit e478a3eaf158159635ffb41b8e778b0ec9b5e439
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Jul 26 21:32:16 2022 +0400

    stylesheet: Unify @view_fg_color with the other fg colors
    
    Have slight transparency in light variant.

 doc/named-colors.md           | 4 ++--
 src/stylesheet/_defaults.scss | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/doc/named-colors.md b/doc/named-colors.md
index b4e93841..855aa761 100644
--- a/doc/named-colors.md
+++ b/doc/named-colors.md
@@ -298,8 +298,8 @@ well as with the [`.view`](style-classes.html#view) style class.
   </tr>
   <tr>
     <td><tt>&#64;view_fg_color</tt></td>
-    <td><div class="color-pill dark" style="background-color: #000000"/></td>
-    <td><tt>#000000</tt></td>
+    <td><div class="color-pill dark" style="background-color: rgba(0, 0, 0, 0.8)"/></td>
+    <td><tt>rgba(0, 0, 0, 0.8)</tt></td>
     <td><div class="color-pill light" style="background-color: #ffffff"/></td>
     <td><tt>#ffffff</tt></td>
   </tr>
diff --git a/src/stylesheet/_defaults.scss b/src/stylesheet/_defaults.scss
index 7761be5d..53514ea6 100644
--- a/src/stylesheet/_defaults.scss
+++ b/src/stylesheet/_defaults.scss
@@ -37,7 +37,7 @@
 
 // Views - e.g. text view or tree view
 @define-color view_bg_color #{if($variant == 'light', #ffffff, #1e1e1e)};
-@define-color view_fg_color #{if($variant == 'light', #000000, #ffffff)};
+@define-color view_fg_color #{if($variant == 'light', transparentize(black, .2), white)};
 
 // Header bar, search bar, tab bar
 @define-color headerbar_bg_color #{if($variant == 'light', #ebebeb, #303030)};


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