2 parents 85b6951 + 2693c83 commit f5b0d08Copy full SHA for f5b0d08
1 file changed
CyberpunkLookAndFeel.h
@@ -191,9 +191,10 @@ class CyberpunkLookAndFeel : public juce::LookAndFeel_V4
191
// Text
192
auto textBounds = bounds.withLeft(ledBox.getRight() + 5.0f);
193
g.setFont(getCustomFont().withHeight(12.0f));
194
- g.setColour(button.getToggleState() ? matrixGreen : matrixGray);
+ auto textColour = button.getToggleState() ? matrixGreen : matrixGray;
195
if (shouldDrawButtonAsHighlighted)
196
- g.setColour(g.getCurrentColour().brighter(0.2f));
+ textColour = textColour.brighter (0.2f);
197
+ g.setColour (textColour);
198
g.drawFittedText(button.getButtonText(), textBounds.toNearestInt(),
199
juce::Justification::centredLeft, 1);
200
}
0 commit comments