[background] Use low contrast rules and dots in page backgrounds

wilder/palette-rebase
Jacopo De Simoi 5 years ago committed by Jacopo De Simoi
parent 7c8591c742
commit 0089e53519
  1. 4
      src/view/background/DottedBackgroundPainter.cpp
  2. 4
      src/view/background/GraphBackgroundPainter.cpp
  3. 4
      src/view/background/LineBackgroundPainter.cpp

@ -7,8 +7,8 @@ DottedBackgroundPainter::DottedBackgroundPainter() = default;
DottedBackgroundPainter::~DottedBackgroundPainter() = default;
void DottedBackgroundPainter::resetConfig() {
this->foregroundColor1 = 0xBDBDBDU;
this->lineWidth = 1.5;
this->foregroundColor1 = 0x303030U;
this->lineWidth = 1;
this->drawRaster1 = 10;
}

@ -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;

@ -7,8 +7,8 @@ LineBackgroundPainter::LineBackgroundPainter(bool verticalLine): verticalLine(ve
LineBackgroundPainter::~LineBackgroundPainter() = default;
void LineBackgroundPainter::resetConfig() {
this->foregroundColor1 = 0x40A0FFU;
this->foregroundColor2 = 0xFF0080U;
this->foregroundColor1 = 0x303030U; // Solarized subtle
this->foregroundColor2 = 0xDC322FU; //
this->lineWidth = 0.5;
}

Loading…
Cancel
Save