Skip to content

Commit 80d04c7

Browse files
committed
Change AlertWindow fonts in CustomLookAndFeel
1 parent bf6a6f6 commit 80d04c7

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Source/UI/LookAndFeel/CustomLookAndFeel.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,3 +938,8 @@ void CustomLookAndFeel::drawDocumentWindowTitleBar (DocumentWindow& window, Grap
938938

939939
g.drawText (window.getName(), textX, 0, textW, h, Justification::centredLeft, true);
940940
}
941+
942+
Font CustomLookAndFeel::getAlertWindowTitleFont() { return { "Fira Sans", "SemiBold", 20.f }; }
943+
Font CustomLookAndFeel::getAlertWindowMessageFont() { return { "Fira Sans", "Regular", 18.f }; }
944+
Font CustomLookAndFeel::getAlertWindowFont() { return { "Fira Sans", "Regular", 16.f }; }
945+

Source/UI/LookAndFeel/CustomLookAndFeel.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ class CustomLookAndFeel : public LookAndFeel_V2
161161

162162
void drawDocumentWindowTitleBar (DocumentWindow&, Graphics&, int, int, int, int, const Image*, bool) override;
163163

164+
// ========= custom Alert Window methods: ===========================
165+
Font getAlertWindowTitleFont() override;
166+
Font getAlertWindowMessageFont() override;
167+
Font getAlertWindowFont() override;
168+
164169
private:
165170

166171
Typeface::Ptr

0 commit comments

Comments
 (0)