[gnome-software] Add back hover state to feature tile



commit 6d01fc21460a19b3a84de71cb5ed3373c49ad958
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Oct 5 00:41:58 2013 -0400

    Add back hover state to feature tile
    
    This was lost during some of the earlier refactoring.

 src/gs-feature-tile.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index feaded5..6dabf44 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -128,10 +128,16 @@ gs_feature_tile_set_app (GsFeatureTile *tile, GsApp *app)
                "  outline-style: dashed;\n"
                "  outline-offset: 2px;\n"
                "  background: %s;\n"
+               "}\n"
+               ".button.featured-tile:hover {\n"
+               "  background: linear-gradient(to bottom,\n"
+                "                              alpha(#fff,0.16),\n"
+               "                              alpha(#aaa,0.16)), %s;\n"
                "}\n",
                gs_app_get_metadata_item (app, "Featured::stroke-color"),
                gs_app_get_metadata_item (app, "Featured::text-color"),
                gs_app_get_metadata_item (app, "Featured::text-color"),
+               gs_app_get_metadata_item (app, "Featured::background"),
                gs_app_get_metadata_item (app, "Featured::background"));
 
        gtk_css_provider_load_from_data (priv->provider, data, -1, NULL);


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