|
|
|
@@ -69,6 +69,8 @@ LookAndFeel_V2::LookAndFeel_V2() |
|
|
|
TextButton::textColourOffId, 0xff000000,
|
|
|
|
|
|
|
|
ToggleButton::textColourId, 0xff000000,
|
|
|
|
ToggleButton::tickColourId, 0xff000000,
|
|
|
|
ToggleButton::tickDisabledColourId, 0xff808080,
|
|
|
|
|
|
|
|
TextEditor::backgroundColourId, 0xffffffff,
|
|
|
|
TextEditor::textColourId, 0xff000000,
|
|
|
|
@@ -295,10 +297,11 @@ void LookAndFeel_V2::drawTickBox (Graphics& g, Component& component, |
|
|
|
tick.lineTo (3.0f, 6.0f);
|
|
|
|
tick.lineTo (6.0f, 0.0f);
|
|
|
|
|
|
|
|
g.setColour (isEnabled ? Colours::black : Colours::grey);
|
|
|
|
g.setColour (component.findColour (isEnabled ? ToggleButton::tickColourId
|
|
|
|
: ToggleButton::tickDisabledColourId));
|
|
|
|
|
|
|
|
const AffineTransform trans (AffineTransform::scale (w / 9.0f, h / 9.0f)
|
|
|
|
.translated (x, y));
|
|
|
|
.translated (x, y));
|
|
|
|
|
|
|
|
g.strokePath (tick, PathStrokeType (2.5f), trans);
|
|
|
|
}
|
|
|
|
|