summaryrefslogtreecommitdiffstats
path: root/src/themes
diff options
context:
space:
mode:
authorTero Ahola <tero.ahola@digia.com>2012-03-15 11:03:44 +0200
committerTero Ahola <tero.ahola@digia.com>2012-03-15 11:03:44 +0200
commit73bc9555ba683159d7dc13fa805104fae4b73b3a (patch)
tree0ee40a3230b76eb9a02c1585a592d308f0f2200b /src/themes
parentfed5cb29c884b118ce644c89626822190b8f0b67 (diff)
Removed chart view background
Diffstat (limited to 'src/themes')
-rw-r--r--src/themes/chartthemebluecerulean_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/themes/chartthemebluecerulean_p.h b/src/themes/chartthemebluecerulean_p.h
index 93e87035..59f38e9a 100644
--- a/src/themes/chartthemebluecerulean_p.h
+++ b/src/themes/chartthemebluecerulean_p.h
@@ -13,8 +13,12 @@ public:
m_seriesColors << QRgb(0x4fbef3);
generateSeriesGradients();
- // No chart background, chart view specifies a background
- // TODO: what if the chart is drawn on custom graphics scene instead of QChartView?
+ // Background
+ QLinearGradient backgroundGradient;
+ backgroundGradient.setColorAt(0.0, QRgb(0x056188));
+ backgroundGradient.setColorAt(1.0, QRgb(0x101a33));
+ backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);
+ m_chartBackgroundGradient = backgroundGradient;
// Axes and other
m_masterFont = QFont();