[nautilus/wip/antoniof/flowbox-to-gridview: 15/16] view-icon-item-ui: Give thumbnails a background




commit c0f329102fc0516e45885b0a60a7bc30014fd6d0
Author: António Fernandes <antoniof gnome org>
Date:   Wed Feb 2 17:57:13 2022 +0000

    view-icon-item-ui: Give thumbnails a background
    
    Thumbnails may have an alpha channel. Fully transparent areas get the
    color of the view background, which is awkward in combinatino with
    shadows giving a raised appearance.
    
    So, set a shaded background to make the transparent areas feel part of
    the "raised" icon, not the view background.

 src/resources/css/Adwaita.css | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index 3d7b90db4..f0657f5e5 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -160,6 +160,7 @@
 }
 
 .nautilus-grid-view .thumbnail {
+  background-color: @shade_color;
   box-shadow: 0px 1px 2px 0px @shade_color,
               0px 0px 0px 1px @shade_color,
               0px 2px 0px 0px @shade_color;


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