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




commit 48bc04e65c17cc0934d1aa34380afc6fdab3b39e
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]