Skip to content

Commit 9fd3e6a

Browse files
committed
QuantumKnob: no default indicator if left-to-right orientation
Signed-off-by: falkTX <falktx@falktx.com>
1 parent fc1cca4 commit 9fd3e6a

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎opengl/Quantum.cpp‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -811,11 +811,14 @@ void AbstractQuantumKnob<small>::onNanoDisplay()
811811
stroke();
812812

813813
// outer ring default position indicator
814-
beginPath();
815-
roundedRect(knobCenterX - ringSize / 2, knobCenterY - knobSize / 2 - ringSize * 1.25, ringSize, ringSize, ringSize * 0.5);
816-
closePath();
817-
fillColor((enabled ? theme.textLightColor : theme.textMidColor).withAlpha(0.5f));
818-
fill();
814+
if (! leftToRight)
815+
{
816+
beginPath();
817+
roundedRect(knobCenterX - ringSize / 2, knobCenterY - knobSize / 2 - ringSize * 1.25, ringSize, ringSize, ringSize * 0.5);
818+
closePath();
819+
fillColor((enabled ? theme.textLightColor : theme.textMidColor).withAlpha(0.5f));
820+
fill();
821+
}
819822

820823
// simulate color bleeding
821824
beginPath();

0 commit comments

Comments
 (0)