[gnome-boxes/wip/wizard-n-props-in-dialog2: 12/20] mini-graph: Adjust for bigger size



commit c1b8b2073766d979bd91757781c3537fec187bd8
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Nov 22 18:19:05 2014 +0000

    mini-graph: Adjust for bigger size
    
    We are about to put mini graphs into properties' main view (and then
    remove them from sidebar), where they'll need to be much bigger than
    they currently are.
    
    TODO: Make them look good on bigger size as well.

 data/gtk-style.css  |    2 +-
 src/mini-graph.vala |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index dd8fe4b..27cb4c9 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -26,7 +26,7 @@
 }
 
 BoxesMiniGraph {
-    background-color: @content_view_bg;
+    background-color: @theme_bg_color;
     border-color: @borders;
     color: @theme_fg_color;
 }
diff --git a/src/mini-graph.vala b/src/mini-graph.vala
index c96fbed..e1fbecc 100644
--- a/src/mini-graph.vala
+++ b/src/mini-graph.vala
@@ -20,6 +20,12 @@ private class Boxes.MiniGraph: Gtk.DrawingArea {
     }
     private bool ymax_set = false;
 
+    public MiniGraph () {
+        width_request = 120;
+        height_request = 60;
+        expand = true;
+    }
+
     private double max () {
         if (points.length == 0)
             return 1.0;


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