mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
UI Nits: Less vibrant gradients
.. go back to more GC-like color defaults, which became a little too vibrant in a recent update to introduce linear gradients to the CP, Histogram and LTM plots.
This commit is contained in:
@@ -452,9 +452,8 @@ CpintPlot::plot_allCurve(CpintPlot *thisPlot,
|
||||
|
||||
// use a linear gradient
|
||||
if (shadeMode && shadingCP) { // 0 value means no shading please - and only if proper value for shadingCP
|
||||
color.setAlpha(180);
|
||||
QColor color1 = color;
|
||||
color1.setAlpha(64);
|
||||
color.setAlpha(64);
|
||||
QColor color1 = color.darker();
|
||||
QLinearGradient linearGradient(0, 0, 0, height());
|
||||
linearGradient.setColorAt(0.0, color);
|
||||
linearGradient.setColorAt(1.0, color1);
|
||||
@@ -691,9 +690,8 @@ CpintPlot::calculate(RideItem *rideItem)
|
||||
allCurve->setPen(line);
|
||||
fill.setAlpha(64);
|
||||
// use a linear gradient
|
||||
fill.setAlpha(240);
|
||||
QColor fill1 = fill;
|
||||
fill1.setAlpha(40);
|
||||
fill.setAlpha(64);
|
||||
QColor fill1 = fill.darker();
|
||||
QLinearGradient linearGradient(0, 0, 0, height());
|
||||
linearGradient.setColorAt(0.0, fill);
|
||||
linearGradient.setColorAt(1.0, fill1);
|
||||
|
||||
@@ -40,9 +40,11 @@ static DeviceType SupportedDevices[] =
|
||||
":images/devices/garminusb.png" },
|
||||
#endif
|
||||
#ifdef GC_HAVE_WFAPI
|
||||
#if 0
|
||||
{ DEV_BT40, DEV_BTLE, (char *) "Bluetooth 4.0", true, false,
|
||||
"Bluetooth Low Energy devices such as KK Inride, Stages PM, Blue HR and Blue SC",
|
||||
":images/devices/btle.png" },
|
||||
#endif
|
||||
{ DEV_KICKR, DEV_BTLE, (char *) "Wahoo Kickr", true, false,
|
||||
"The Wahoo Fitness Kickr cyling trainer via its Bluetooth smart interface. ",
|
||||
":images/devices/kickr.png" },
|
||||
|
||||
@@ -314,9 +314,8 @@ LTMPlot::setData(LTMSettings *set)
|
||||
QBrush brush = QBrush(brushColor);
|
||||
current->setBrush(brush);
|
||||
} else {
|
||||
brushColor.setAlpha(100); // now side by side, less transparency required
|
||||
QColor brushColor1 = brushColor;
|
||||
brushColor1.setAlpha(255);
|
||||
brushColor.setAlpha(64); // now side by side, less transparency required
|
||||
QColor brushColor1 = brushColor.darker();
|
||||
|
||||
QLinearGradient linearGradient(0, 0, 0, height());
|
||||
linearGradient.setColorAt(0.0, brushColor1);
|
||||
@@ -600,9 +599,8 @@ LTMPlot::setData(LTMSettings *set)
|
||||
|
||||
// fill the bars
|
||||
QColor brushColor = metricDetail.penColor;
|
||||
brushColor.setAlpha(100); // now side by side, less transparency required
|
||||
QColor brushColor1 = metricDetail.penColor;
|
||||
brushColor1.setAlpha(255); // now side by side, less transparency required
|
||||
brushColor.setAlpha(64); // now side by side, less transparency required
|
||||
QColor brushColor1 = metricDetail.penColor.darker();
|
||||
QLinearGradient linearGradient(0, 0, 0, height());
|
||||
linearGradient.setColorAt(0.0, brushColor1);
|
||||
linearGradient.setColorAt(1.0, brushColor);
|
||||
|
||||
@@ -161,9 +161,8 @@ PowerHist::configChanged()
|
||||
}
|
||||
|
||||
// use a linear gradient
|
||||
brush_color.setAlpha(240);
|
||||
QColor brush_color1 = brush_color;
|
||||
brush_color1.setAlpha(40);
|
||||
brush_color.setAlpha(64);
|
||||
QColor brush_color1 = brush_color.darker();
|
||||
QLinearGradient linearGradient(0, 0, 0, height());
|
||||
linearGradient.setColorAt(0.0, brush_color);
|
||||
linearGradient.setColorAt(1.0, brush_color1);
|
||||
|
||||
Reference in New Issue
Block a user