mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
LookAndFeel: added method to specify a custom font for Alert Window title.
This commit is contained in:
parent
0e6c3ab68f
commit
d46ea64aa5
5 changed files with 38 additions and 10 deletions
|
|
@ -490,6 +490,12 @@ int LookAndFeel_V2::getAlertWindowButtonHeight()
|
|||
return 28;
|
||||
}
|
||||
|
||||
Font LookAndFeel_V2::getAlertWindowTitleFont()
|
||||
{
|
||||
Font messageFont = getAlertWindowMessageFont();
|
||||
return messageFont.withHeight (messageFont.getHeight() * 1.1f).boldened();
|
||||
}
|
||||
|
||||
Font LookAndFeel_V2::getAlertWindowMessageFont()
|
||||
{
|
||||
return Font (15.0f);
|
||||
|
|
|
|||
|
|
@ -67,7 +67,22 @@ public:
|
|||
void drawAlertBox (Graphics&, AlertWindow&, const Rectangle<int>& textArea, TextLayout&) override;
|
||||
int getAlertBoxWindowFlags() override;
|
||||
int getAlertWindowButtonHeight() override;
|
||||
|
||||
/** Override this function to supply a custom font for the alert window title.
|
||||
This default implementation will use a boldened and slightly larger version
|
||||
of the alert window message font.
|
||||
|
||||
@see getAlertWindowMessageFont.
|
||||
*/
|
||||
Font getAlertWindowTitleFont() override;
|
||||
|
||||
/** Override this function to supply a custom font for the alert window message.
|
||||
This default implementation will use the default font with height set to 15.0f.
|
||||
|
||||
@see getAlertWindowTitleFont
|
||||
*/
|
||||
Font getAlertWindowMessageFont() override;
|
||||
|
||||
Font getAlertWindowFont() override;
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue