[gnome-games] ui: Use theme relative colors for styling



commit f605f610fa199de85eace1118d42ee4f9c985a7e
Author: theawless <theawless gmail com>
Date:   Mon May 15 20:26:51 2017 +0530

    ui: Use theme relative colors for styling
    
    This allows Games to follow global themes. Furthermore, we will be able
    to support light themes and not be forced to set
    'gtk-application-prefer-dark-theme' to 1.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779128

 data/gtk-style.css |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index f44ecb8..bd8b392 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -1,20 +1,14 @@
 /* This file is part of GNOME Games. License: GPL-3.0+. */
 
-@define-color games_collection_bg_color #292929;
-
-@define-color games_thumbnail_color #bebebe;
-@define-color games_thumbnail_border_color #3b3c38;
-@define-color games_thumbnail_bg_color #2d2d2d;
-
 gamescollectioniconview .frame {
-       background-color: @games_collection_bg_color;
+       background-color: @theme_base_color;
 }
 
 gamesgamethumbnail {
-       background-color: @games_thumbnail_bg_color;
+       background-color: mix (@theme_base_color, @theme_bg_color, 0.5);
        border-width: 1px;
        border-style: solid;
        border-radius: 2px;
-       border-color: @games_thumbnail_border_color;
-       color: @games_thumbnail_color;
+       border-color: @theme_bg_color;
+       color: @theme_fg_color;
 }


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