More tweaks to colour palette
This commit is contained in:
@@ -43,14 +43,17 @@ QColor TargetPinBodyWidget::getBodyColor() {
|
|||||||
if (this->pinState.has_value()
|
if (this->pinState.has_value()
|
||||||
&& this->pinState->ioState.has_value()
|
&& this->pinState->ioState.has_value()
|
||||||
&& this->pinState->ioDirection.has_value()
|
&& this->pinState->ioDirection.has_value()
|
||||||
&& this->pinState->ioState.value() == TargetPinState::IoState::HIGH
|
|
||||||
) {
|
) {
|
||||||
pinColor = this->pinState->ioDirection.value() == TargetPinState::IoDirection::OUTPUT ?
|
const auto ioDirection = this->pinState->ioDirection.value();
|
||||||
|
|
||||||
|
if (this->pinState->ioState.value() == TargetPinState::IoState::HIGH) {
|
||||||
|
pinColor = ioDirection == TargetPinState::IoDirection::OUTPUT ?
|
||||||
this->outputHighBodyColor : this->inputHighBodyColor;
|
this->outputHighBodyColor : this->inputHighBodyColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->hoverActive) {
|
if (ioDirection == TargetPinState::IoDirection::OUTPUT && !this->hoverActive) {
|
||||||
pinColor.setAlpha(225);
|
pinColor.setAlpha(200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace Bloom::Widgets::InsightTargetWidgets
|
|||||||
QColor vccBodyColor = QColor("#703736");
|
QColor vccBodyColor = QColor("#703736");
|
||||||
QColor gndBodyColor = QColor("#46484A");
|
QColor gndBodyColor = QColor("#46484A");
|
||||||
QColor outputHighBodyColor = QColor("#3B6469");
|
QColor outputHighBodyColor = QColor("#3B6469");
|
||||||
QColor inputHighBodyColor = QColor("#806231");
|
QColor inputHighBodyColor = QColor("#7B5F31");
|
||||||
|
|
||||||
int disableAlphaLevel = 100;
|
int disableAlphaLevel = 100;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user