From 81ad21b0052e53b4c6e0916db96bd9a0ebae5ac8 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 7 Aug 2021 17:31:06 +0100 Subject: [PATCH] Adjusted the Insight window colour palette to use softer colours with a higher temperature (less blue) --- .../InsightWindow/Images/BloomIcon.svg | 25 ++++++------- .../InsightWindow/Stylesheets/AboutWindow.qss | 2 +- .../Stylesheets/InsightWindow.qss | 36 ++++++++++--------- .../Widgets/TargetWidgets/DIP/BodyWidget.cpp | 2 +- .../Widgets/TargetWidgets/DIP/BodyWidget.hpp | 2 +- .../Widgets/TargetWidgets/DIP/PinWidget.hpp | 2 +- .../Widgets/TargetWidgets/QFP/BodyWidget.cpp | 2 +- .../Widgets/TargetWidgets/QFP/BodyWidget.hpp | 2 +- .../Widgets/TargetWidgets/QFP/PinWidget.hpp | 2 +- .../TargetWidgets/TargetPinBodyWidget.hpp | 8 ++--- 10 files changed, 43 insertions(+), 40 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Images/BloomIcon.svg b/src/Insight/UserInterfaces/InsightWindow/Images/BloomIcon.svg index 89191219..f5486a8c 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Images/BloomIcon.svg +++ b/src/Insight/UserInterfaces/InsightWindow/Images/BloomIcon.svg @@ -299,7 +299,7 @@ @@ -325,7 +325,7 @@ image/svg+xml - + @@ -333,21 +333,22 @@ inkscape:groupmode="layer" id="layer6" inkscape:label="Layer 5" - style="display:inline"> + style="display:inline" + sodipodi:insensitive="true"> + y="-2.220446e-16" /> + style="display:inline" + sodipodi:insensitive="true"> getBodyColor(); - auto backgroundColor = QColor("#3C3F41"); + auto backgroundColor = QColor("#343532"); if (!this->isEnabled()) { targetBodyColor.setAlpha(this->getDisableAlphaLevel()); diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/BodyWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/BodyWidget.hpp index 8df66388..09703c21 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/BodyWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/BodyWidget.hpp @@ -12,7 +12,7 @@ namespace Bloom::Widgets::InsightTargetWidgets::Dip private: // These properties can be modified via Qt style sheets (see Stylesheets/DualInlinePackage.qss) - QColor bodyColor = QColor("#AFB1B3"); + QColor bodyColor = QColor("#918E86"); int disableAlphaLevel = 100; protected: diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/PinWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/PinWidget.hpp index 93028b4a..cf39222f 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/PinWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/DIP/PinWidget.hpp @@ -55,7 +55,7 @@ namespace Bloom::Widgets::InsightTargetWidgets::Dip this->bodyWidget->setPinState(pinState); } - this->setLabelColor(this->pinStateChanged ? "#6FA0FF" : "#a6a7aa"); + this->setLabelColor(this->pinStateChanged ? "#4d7bba" : "#a6a7aa"); } }; } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.cpp index 915687b5..b6d7109f 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.cpp @@ -14,7 +14,7 @@ void BodyWidget::drawWidget(QPainter& painter) { painter.setRenderHints(QPainter::RenderHint::Antialiasing | QPainter::RenderHint::SmoothPixmapTransform, true); auto targetBodyColor = this->getBodyColor(); - auto backgroundColor = QColor("#3C3F41"); + auto backgroundColor = QColor("#343532"); if (!this->isEnabled()) { targetBodyColor.setAlpha(this->getDisableAlphaLevel()); diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.hpp index 47fb5f11..f62ead9a 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/BodyWidget.hpp @@ -12,7 +12,7 @@ namespace Bloom::Widgets::InsightTargetWidgets::Qfp private: // These properties can be modified via Qt style sheets (see Stylesheets/QuadFlatPackage.qss) - QColor bodyColor = QColor("#AFB1B3"); + QColor bodyColor = QColor("#918E86"); int disableAlphaLevel = 100; protected: diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.hpp index 9c0173d4..ccff0c31 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/QFP/PinWidget.hpp @@ -67,7 +67,7 @@ namespace Bloom::Widgets::InsightTargetWidgets::Qfp this->bodyWidget->setPinState(pinState); } - this->setLabelColor(this->pinStateChanged ? "#6FA0FF" : "#a6a7aa"); + this->setLabelColor(this->pinStateChanged ? "#4d7bba" : "#a6a7aa"); } }; } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp index d6d82c80..a685173d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp @@ -29,11 +29,11 @@ namespace Bloom::Widgets::InsightTargetWidgets bool hoverActive = false; - QColor defaultBodyColor = QColor("#AFB1B3"); - QColor vccBodyColor = QColor("#764935"); + QColor defaultBodyColor = QColor("#918E86"); + QColor vccBodyColor = QColor("#703736"); QColor gndBodyColor = QColor("#46484A"); - QColor outputHighBodyColor = QColor("#237B77"); - QColor inputHighBodyColor = QColor("#A47E3E"); + QColor outputHighBodyColor = QColor("#3B6469"); + QColor inputHighBodyColor = QColor("#806231"); int disableAlphaLevel = 100;