[gnome-games/wip/exalm/empty: 5/5] collection-box: Make stack background solid



commit 51255267ae7a7bdb8ce4fd06c2f50fb23c165f40
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Wed May 1 23:04:58 2019 +0500

    collection-box: Make stack background solid
    
    GtkStack doesn't have any background by default. If it has a non-revealed
    GtkInfoBar just above it, its border can be visible. Add a background to
    prevent this.

 data/gtk-style.css        | 4 ++++
 data/ui/collection-box.ui | 3 +++
 2 files changed, 7 insertions(+)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index bb5db57b..c4cfd62c 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -1,5 +1,9 @@
 /* This file is part of GNOME Games. License: GPL-3.0+. */
 
+.solid-background {
+       background-color: @theme_bg_color;
+}
+
 .content-view {
        background-color: @theme_base_color;
 }
diff --git a/data/ui/collection-box.ui b/data/ui/collection-box.ui
index c926e3b0..7adb6e1c 100644
--- a/data/ui/collection-box.ui
+++ b/data/ui/collection-box.ui
@@ -25,6 +25,9 @@
             <property name="visible-child">collection_view</property>
             <property name="transition-type">crossfade</property>
             <signal name="notify::visible-child" handler="on_visible_child_changed"/>
+            <style>
+              <class name="solid-background"/>
+            </style>
             <child>
               <object class="GamesEmptyCollection" id="empty_collection">
                 <property name="visible">True</property>


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