From 203abc64a4fbef89c8e35679ed78f4e7f4c7e42f Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Tue, 24 Nov 2020 10:15:32 -0500 Subject: [PATCH] [background] Use low contrast rules and dots in page backgrounds --- src/core/view/background/DottedBackgroundPainter.cpp | 4 ++-- src/core/view/background/GraphBackgroundPainter.cpp | 2 +- src/core/view/background/LineBackgroundPainter.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/view/background/DottedBackgroundPainter.cpp b/src/core/view/background/DottedBackgroundPainter.cpp index 7d91970f..e6f6bc30 100644 --- a/src/core/view/background/DottedBackgroundPainter.cpp +++ b/src/core/view/background/DottedBackgroundPainter.cpp @@ -7,9 +7,9 @@ DottedBackgroundPainter::DottedBackgroundPainter() = default; DottedBackgroundPainter::~DottedBackgroundPainter() = default; void DottedBackgroundPainter::resetConfig() { - this->defaultForegroundColor1 = 0xBDBDBDU; + this->defaultForegroundColor1 = 0x303030U; this->defaultAlternativeForegroundColor1 = 0x434343U; - this->lineWidth = 1.5; + this->lineWidth = 1.0; this->drawRaster1 = 10; } diff --git a/src/core/view/background/GraphBackgroundPainter.cpp b/src/core/view/background/GraphBackgroundPainter.cpp index 6517093a..d386bb89 100644 --- a/src/core/view/background/GraphBackgroundPainter.cpp +++ b/src/core/view/background/GraphBackgroundPainter.cpp @@ -9,7 +9,7 @@ GraphBackgroundPainter::GraphBackgroundPainter() = default; GraphBackgroundPainter::~GraphBackgroundPainter() = default; void GraphBackgroundPainter::resetConfig() { - this->defaultForegroundColor1 = 0xBDBDBDU; + this->defaultForegroundColor1 = 0x303030; this->defaultAlternativeForegroundColor1 = 0x434343U; this->lineWidth = 0.5; this->drawRaster1 = 14.17; diff --git a/src/core/view/background/LineBackgroundPainter.cpp b/src/core/view/background/LineBackgroundPainter.cpp index 24f71c86..cae192d0 100644 --- a/src/core/view/background/LineBackgroundPainter.cpp +++ b/src/core/view/background/LineBackgroundPainter.cpp @@ -7,9 +7,9 @@ LineBackgroundPainter::LineBackgroundPainter(bool verticalLine): verticalLine(ve LineBackgroundPainter::~LineBackgroundPainter() = default; void LineBackgroundPainter::resetConfig() { - this->defaultForegroundColor1 = 0x40A0FFU; + this->defaultForegroundColor1 = 0x303030U; this->defaultAlternativeForegroundColor1 = 0x434343U; - this->defaultForegroundColor2 = 0xFF0080U; + this->defaultForegroundColor2 = 0xDF223FU; this->defaultAlternativeForegroundColor2 = 0x220080U; this->lineWidth = 0.5; }