Skip to content

Commit 42f9a4a

Browse files
committed
Replaced Font with FontOptions and made the accessors static
1 parent a017213 commit 42f9a4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

complete/tremolo_plugin/include/Tremolo/CustomLookAndFeel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ class CustomLookAndFeel : public juce::LookAndFeel_V4 {
99

1010
CustomLookAndFeel();
1111

12-
[[nodiscard]] juce::Font getSideLabelsFont() const;
12+
[[nodiscard]] static juce::FontOptions getSideLabelsFont();
1313

1414
juce::BorderSize<int> getLabelBorderSize(juce::Label&) override;
1515

16-
[[nodiscard]] juce::Font getRateLabelFont() const;
16+
[[nodiscard]] static juce::FontOptions getRateLabelFont();
1717

1818
void drawRotarySlider(juce::Graphics&,
1919
int x,

complete/tremolo_plugin/source/CustomLookAndFeel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ CustomLookAndFeel::CustomLookAndFeel() {
5555
interMedium().getTypeface());
5656
}
5757

58-
juce::Font CustomLookAndFeel::getSideLabelsFont() const {
58+
juce::FontOptions CustomLookAndFeel::getSideLabelsFont() {
5959
return interMedium().withPointHeight(10.f);
6060
}
6161

6262
juce::BorderSize<int> CustomLookAndFeel::getLabelBorderSize(juce::Label&) {
6363
return juce::BorderSize{0};
6464
}
6565

66-
juce::Font CustomLookAndFeel::getRateLabelFont() const {
66+
juce::FontOptions CustomLookAndFeel::getRateLabelFont() {
6767
return interBold().withPointHeight(12.f);
6868
}
6969

0 commit comments

Comments
 (0)