|
|
|
|
@ -18,11 +18,11 @@ void GraphBackgroundPainter::updateGraphColor() { |
|
|
|
|
return ((0xffU & uint32_t(color)) + (0xffU & (uint32_t(color) >> 8U)) + (0xffU & (uint32_t(color) >> 16U))) / 3; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this->foregroundColor1 = greyscale(backgroundColor) < 0x80U ? 0x202020U : 0xBDBDBDU; |
|
|
|
|
this->foregroundColor1 = greyscale(backgroundColor) < 0x80U ? 0x303030U : 0xBDBDBDU; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GraphBackgroundPainter::resetConfig() { |
|
|
|
|
this->foregroundColor1 = 0xBDBDBDU; |
|
|
|
|
this->foregroundColor1 = 0x303030; |
|
|
|
|
this->lineWidth = 0.5; |
|
|
|
|
this->drawRaster1 = 14.17; |
|
|
|
|
this->margin1 = 0; |
|
|
|
|
|