[shotwell/wip/phako/dark: 5/16] wip



commit 938ab7e08c929b314de38475d329d0a147de1f4b
Author: Jens Georg <mail+gitkraken jensge org>
Date:   Sun Apr 1 09:55:56 2018 +0200

    wip

 src/CheckerboardLayout.vala |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/CheckerboardLayout.vala b/src/CheckerboardLayout.vala
index f39a4f7..82f301f 100644
--- a/src/CheckerboardLayout.vala
+++ b/src/CheckerboardLayout.vala
@@ -1925,12 +1925,7 @@ public class CheckerboardLayout : Gtk.DrawingArea {
 
         Gtk.Allocation allocation;
         get_allocation(out allocation);
-        var color = Config.Facade.get_instance().get_bg_color();
-        ctx.save();
-        ctx.set_source_rgb(color.red, color.green, color.blue);
-        ctx.rectangle(0, 0, allocation.width, allocation.height);
-        ctx.fill();
-        ctx.restore();
+        get_style_context().render_background (ctx, 0, 0, allocation.width, allocation.height);
         
         // watch for message mode
         if (message == null) {


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