[gnome-boxes/wip/wizard-n-props-in-dialog2: 4/12] mini-graph: Adjust for bigger size
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/wizard-n-props-in-dialog2: 4/12] mini-graph: Adjust for bigger size
- Date: Mon, 24 Nov 2014 13:04:45 +0000 (UTC)
commit c5f95a7ed2a3a2f9cf9f84e25094f1dc89c5eb4a
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]