Browse Source

Increase LookAndFeel_V4 TextButton font size

tags/2021-05-28
ed 7 years ago
parent
commit
df29478f64
2 changed files with 7 additions and 0 deletions
  1. +5
    -0
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp
  2. +2
    -0
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h

+ 5
- 0
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp View File

@@ -276,6 +276,11 @@ void LookAndFeel_V4::drawDocumentWindowTitleBar (DocumentWindow& window, Graphic
} }
//============================================================================== //==============================================================================
Font LookAndFeel_V4::getTextButtonFont (TextButton&, int buttonHeight)
{
return { jmin (18.0f, buttonHeight * 0.6f) };
}
void LookAndFeel_V4::drawButtonBackground (Graphics& g, void LookAndFeel_V4::drawButtonBackground (Graphics& g,
Button& button, Button& button,
const Colour& backgroundColour, const Colour& backgroundColour,


+ 2
- 0
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h View File

@@ -105,6 +105,8 @@ public:
void drawDocumentWindowTitleBar (DocumentWindow&, Graphics&, int, int, int, int, const Image*, bool) override; void drawDocumentWindowTitleBar (DocumentWindow&, Graphics&, int, int, int, int, const Image*, bool) override;
//============================================================================== //==============================================================================
Font getTextButtonFont (TextButton&, int buttonHeight) override;
void drawButtonBackground (Graphics&, Button&, const Colour& backgroundColour, void drawButtonBackground (Graphics&, Button&, const Colour& backgroundColour,
bool isMouseOverButton, bool isButtonDown) override; bool isMouseOverButton, bool isButtonDown) override;


Loading…
Cancel
Save