[libcalamaresui] Provide standardised large font

This commit is contained in:
Adriaan de Groot 2018-06-13 19:31:00 +02:00
parent 8b406cac9b
commit 3e24c3c58f
2 changed files with 10 additions and 0 deletions

View File

@ -226,6 +226,15 @@ defaultFont()
} }
QFont
largeFont()
{
QFont f;
f.setPointSize( defaultFontSize() + 4 );
return f;
}
void void
setDefaultFontSize( int points ) setDefaultFontSize( int points )
{ {

View File

@ -115,6 +115,7 @@ UIDLLEXPORT void setDefaultFontSize( int points );
UIDLLEXPORT int defaultFontSize(); // in points UIDLLEXPORT int defaultFontSize(); // in points
UIDLLEXPORT int defaultFontHeight(); // in pixels, DPI-specific UIDLLEXPORT int defaultFontHeight(); // in pixels, DPI-specific
UIDLLEXPORT QFont defaultFont(); UIDLLEXPORT QFont defaultFont();
UIDLLEXPORT QFont largeFont();
UIDLLEXPORT QSize defaultIconSize(); UIDLLEXPORT QSize defaultIconSize();
/** /**