[nautilus/wip/antoniof/view-item-state-styling] css: Dim empty view page



commit bd06d3bb93c37024ca5aefc975b85d7d3006c10f
Author: António Fernandes <antoniof gnome org>
Date:   Thu Aug 4 20:10:12 2022 +0100

    css: Dim empty view page
    
    Before adopting AdwStatusPage, we used to apply a 50% opacity on the
    icon and the text font was light.
    
    Now there is 100% opacity and bold font which is too intense in a view.
    
    Change to a dimmer color derived from @borders for HighContrast support.

 src/resources/css/Adwaita.css | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index 72a80695f..d9292d64a 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -1,7 +1,3 @@
-.nautilus-empty-state-icon {
-    opacity: 0.50;
-}
-
 /* Toolbar */
 
 /* Here we use the .button background-image colors from Adwaita, but ligthen them,
@@ -255,6 +251,11 @@
   border-radius: 2px;
 }
 
+.view statuspage {
+  /* mix with @borders for automatic HighContrast support */
+  color: mix(@borders, currentColor, 0.5);
+}
+
 .view .cut {
   opacity: 0.55;
 }


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