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



commit 044c6fab18dbaf5380f2a8605825511bb6e0c3b2
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 642e8ea..e8076ed 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -124,10 +124,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]