diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-10 13:52:59 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-10 13:52:59 +0100 |
commit | 1ad5ab05bdd4a5d66370426c09d8d09c2ba39943 (patch) | |
tree | 9574bf53f80d435f56b2e0cac9060a57e0eb7d9c /plugingui/knob.cc | |
parent | 5aad0006b4cf04f3accd29912ca11312b65858dc (diff) |
Work a little on knob design and knob/checkbox positions.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r-- | plugingui/knob.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc index d36fb6f..a80e325 100644 --- a/plugingui/knob.cc +++ b/plugingui/knob.cc @@ -170,9 +170,10 @@ void GUI::Knob::repaintEvent(GUI::RepaintEvent *e) p.drawText(center_x - font.textWidth(buf) / 2, center_y + font.textHeight(buf) / 2, font, buf); - p.setColour(Colour(0.5, 0.5, 1, alpha)); + p.setColour(Colour(1, alpha)); p.drawCircle(center_x, center_y, radius); + p.drawCircle(center_x, center_y, radius - 1); double padval = val * 0.8 + 0.1; double border_x = sin((-1 * padval + 1) * 2 * M_PI); |