[gnome-boxes] mini-graph: Adjust for bigger size
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] mini-graph: Adjust for bigger size
- Date: Tue, 25 Nov 2014 15:06:25 +0000 (UTC)
commit 6e03fa21082787b9da4adc944051b064b8e05642
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.
https://bugzilla.gnome.org/show_bug.cgi?id=733367
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]