Skip to content

Commit f5b0d08

Browse files
authored
Merge pull request #12 from GizzZmo/copilot/fix-cyberpunk-look-and-feel-error
Fix macOS build error: remove juce::Graphics::getCurrentColour() call
2 parents 85b6951 + 2693c83 commit f5b0d08

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CyberpunkLookAndFeel.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@ class CyberpunkLookAndFeel : public juce::LookAndFeel_V4
191191
// Text
192192
auto textBounds = bounds.withLeft(ledBox.getRight() + 5.0f);
193193
g.setFont(getCustomFont().withHeight(12.0f));
194-
g.setColour(button.getToggleState() ? matrixGreen : matrixGray);
194+
auto textColour = button.getToggleState() ? matrixGreen : matrixGray;
195195
if (shouldDrawButtonAsHighlighted)
196-
g.setColour(g.getCurrentColour().brighter(0.2f));
196+
textColour = textColour.brighter (0.2f);
197+
g.setColour (textColour);
197198
g.drawFittedText(button.getButtonText(), textBounds.toNearestInt(),
198199
juce::Justification::centredLeft, 1);
199200
}

0 commit comments

Comments
 (0)