From e0b7ec76e438119ec3014a8ca55216d62adeb79e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 3 Aug 2021 00:53:12 -0400 Subject: [PATCH] Tweak color and thickness of CableWidget. --- src/app/CableWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/CableWidget.cpp b/src/app/CableWidget.cpp index 5a5047ce..afbcdcb4 100644 --- a/src/app/CableWidget.cpp +++ b/src/app/CableWidget.cpp @@ -298,7 +298,7 @@ void CableWidget::draw(const DrawArgs& args) { math::Vec outputPos = getOutputPos(); math::Vec inputPos = getInputPos(); - float thickness = thick ? 10.0 : 6.0; + float thickness = thick ? 9.0 : 6.0; // The endpoints are off-center math::Vec slump = getSlumpPos(outputPos, inputPos); @@ -326,12 +326,12 @@ void CableWidget::draw(const DrawArgs& args) { nvgMoveTo(args.vg, VEC_ARGS(outputPos)); nvgQuadTo(args.vg, VEC_ARGS(slump), VEC_ARGS(inputPos)); // nvgStrokePaint(args.vg, nvgLinearGradient(args.vg, VEC_ARGS(outputPos), VEC_ARGS(inputPos), color::mult(color, 0.5), color)); - nvgStrokeColor(args.vg, color::mult(color, 0.75)); + nvgStrokeColor(args.vg, color::mult(color, 0.8)); nvgStrokeWidth(args.vg, thickness); nvgStroke(args.vg); // Draw cable - nvgStrokeColor(args.vg, color); + nvgStrokeColor(args.vg, color::mult(color, 0.95)); nvgStrokeWidth(args.vg, thickness - 1.0); nvgStroke(args.vg); }