[gnome-boxes] Fix color of toolbar in fullscreen



commit 7cc96564e954572fbfb0f8b6b4880a56dd69d933
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 29 12:06:29 2012 +0200

    Fix color of toolbar in fullscreen
    
    The new default Adwaita background color for most widgets
    is transparent, includeing toolbars. This is problematic for
    the fullscreen toolbar, as it overlays over the VM instead
    of something with the default background. We fix this by
    setting the default bg color on the overlay.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679121

 data/gtk-style.css    |    4 ++++
 src/display-page.vala |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 4338009..27a0372 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -212,3 +212,7 @@ GtkClutterOffscreen,
 .boxes-menu-row *:active {
     color: #ffffff;
 }
+
+.boxes-toplevel {
+    background-color: @theme_bg_color;
+}
diff --git a/src/display-page.vala b/src/display-page.vala
index e7a65e2..e35dee4 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -140,6 +140,7 @@ private class Boxes.DisplayPage: GLib.Object {
         overlay_toolbar.set_valign (Gtk.Align.START);
 
         overlay.add_overlay (overlay_toolbar);
+        overlay.get_style_context ().add_class ("boxes-toplevel");
         overlay.show_all ();
     }
 



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