feat: Highlight active dimension input blue by default
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -647,7 +647,7 @@ void ViewportWidget::paintGL()
|
||||
QRect textRect = fm.boundingRect(dimText + "_");
|
||||
textRect.moveCenter(screenPos.toPoint());
|
||||
|
||||
if (lengthFromInput && property("dimensionEditMode").toString() == "length") {
|
||||
if (property("dimensionEditMode").toString() == "length") {
|
||||
painter.fillRect(textRect.adjusted(-4, -2, 4, 2), QColor(64, 128, 255));
|
||||
} else {
|
||||
painter.fillRect(textRect.adjusted(-4, -2, 4, 2), QColor(50, 50, 50));
|
||||
@@ -696,7 +696,7 @@ void ViewportWidget::paintGL()
|
||||
if (screenPosAngle.z() < 1.0f) {
|
||||
QRect angleTextRect = fm.boundingRect(angleText + "_");
|
||||
angleTextRect.moveCenter(screenPosAngle.toPoint());
|
||||
if (angleFromInput && property("dimensionEditMode").toString() == "angle") {
|
||||
if (property("dimensionEditMode").toString() == "angle") {
|
||||
painter.fillRect(angleTextRect.adjusted(-4, -2, 4, 2), QColor(64, 128, 255));
|
||||
} else {
|
||||
painter.fillRect(angleTextRect.adjusted(-4, -2, 4, 2), QColor(50, 50, 50));
|
||||
|
||||
Reference in New Issue
Block a user