diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp index 6e33fd5c..357b12db 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.cpp @@ -43,14 +43,17 @@ QColor TargetPinBodyWidget::getBodyColor() { if (this->pinState.has_value() && this->pinState->ioState.has_value() && this->pinState->ioDirection.has_value() - && this->pinState->ioState.value() == TargetPinState::IoState::HIGH ) { - pinColor = this->pinState->ioDirection.value() == TargetPinState::IoDirection::OUTPUT ? - this->outputHighBodyColor : this->inputHighBodyColor; - } + const auto ioDirection = this->pinState->ioDirection.value(); - if (!this->hoverActive) { - pinColor.setAlpha(225); + if (this->pinState->ioState.value() == TargetPinState::IoState::HIGH) { + pinColor = ioDirection == TargetPinState::IoDirection::OUTPUT ? + this->outputHighBodyColor : this->inputHighBodyColor; + } + + if (ioDirection == TargetPinState::IoDirection::OUTPUT && !this->hoverActive) { + pinColor.setAlpha(200); + } } } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp index a685173d..ea9e3221 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPinBodyWidget.hpp @@ -33,7 +33,7 @@ namespace Bloom::Widgets::InsightTargetWidgets QColor vccBodyColor = QColor("#703736"); QColor gndBodyColor = QColor("#46484A"); QColor outputHighBodyColor = QColor("#3B6469"); - QColor inputHighBodyColor = QColor("#806231"); + QColor inputHighBodyColor = QColor("#7B5F31"); int disableAlphaLevel = 100;