From d3f5fc49a8b68dc21fe8b7c7e2777050348cbd13 2012-03-20 12:27:53 From: Tero Ahola Date: 2012-03-20 12:27:53 Subject: [PATCH] Fixed background gradients direction --- diff --git a/src/themes/chartthemebluecerulean_p.h b/src/themes/chartthemebluecerulean_p.h index d74706d..c7cad39 100644 --- a/src/themes/chartthemebluecerulean_p.h +++ b/src/themes/chartthemebluecerulean_p.h @@ -16,7 +16,7 @@ public: generateSeriesGradients(); // Background - QLinearGradient backgroundGradient; + QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); backgroundGradient.setColorAt(0.0, QRgb(0x056189)); backgroundGradient.setColorAt(1.0, QRgb(0x101a31)); backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode); diff --git a/src/themes/chartthemedark_p.h b/src/themes/chartthemedark_p.h index 829be2a..7919a4d 100644 --- a/src/themes/chartthemedark_p.h +++ b/src/themes/chartthemedark_p.h @@ -16,7 +16,7 @@ public: generateSeriesGradients(); // Background - QLinearGradient backgroundGradient; + QLinearGradient backgroundGradient(0.5, 0.0, 0.5, 1.0); backgroundGradient.setColorAt(0.0, QRgb(0x2e303a)); backgroundGradient.setColorAt(1.0, QRgb(0x121218)); backgroundGradient.setCoordinateMode(QGradient::ObjectBoundingMode);