[gnome-software/revert-85640a03] Revert "featured-carousel: Add an inset box shadow to the carousel"




commit a1c4f4c7954af284398b1cd59377d8822af64027
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Feb 12 15:29:16 2022 +0000

    Revert "featured-carousel: Add an inset box shadow to the carousel"
    
    This reverts commit 85640a039e414d9eed98182d3ebc6631fbdb02b7

 src/gs-featured-carousel.ui | 14 --------------
 src/style.css               |  6 ------
 2 files changed, 20 deletions(-)
---
diff --git a/src/gs-featured-carousel.ui b/src/gs-featured-carousel.ui
index 03ae312aa..6298534c3 100644
--- a/src/gs-featured-carousel.ui
+++ b/src/gs-featured-carousel.ui
@@ -25,20 +25,6 @@
             </style>
           </object>
         </child>
-        <!-- As children are drawn above the parent's inset box-shadow and as
-             the carousel's children have opaque backgrounds, we can't an inset
-             box shadow set on the carousel (or any parent) and expect them to
-             be visible. To work around this (it isn't a bug) and have the
-             effect we want, we can overlay a widget above the carousel and give
-             it the wanted inset box shadow. -->
-        <child type="overlay">
-          <object class="GtkBox">
-            <property name="can-target">False</property>
-            <style>
-              <class name="inset-shadow"/>
-            </style>
-          </object>
-        </child>
         <child type="overlay">
           <object class="GtkButton" id="previous_button">
             <property name="use-underline">True</property>
diff --git a/src/style.css b/src/style.css
index e9cf56125..5ffcd9f97 100644
--- a/src/style.css
+++ b/src/style.css
@@ -19,12 +19,6 @@ screenshot-carousel button,
        margin: 12px;
 }
 
-.featured-carousel .inset-shadow {
-  /* The border radius mimicks .card from Adwaita. */
-  border-radius: 12px;
-  box-shadow: inset 0 0 0 1px alpha(black, 0.13);
-}
-
 .screenshot-image-main .image1, .screenshot-image-main .image2 {
        margin-top: 6px;
        margin-bottom: 12px;


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