M3 font sizes changed

This commit is contained in:
Uwe Rathmann 2024-02-21 17:50:29 +01:00
parent a49b128168
commit 8e018fc702

View File

@ -1432,7 +1432,7 @@ QskMaterial3Skin::~QskMaterial3Skin()
static inline QFont createFont( int size, int lineHeight, static inline QFont createFont( int size, int lineHeight,
qreal spacing, QFont::Weight weight ) qreal spacing, QFont::Weight weight )
{ {
Q_UNUSED( size ); Q_UNUSED( lineHeight );
/* /*
sp (Scaleable Pixels OR scale-independent pixels) this is sp (Scaleable Pixels OR scale-independent pixels) this is
@ -1441,7 +1441,7 @@ static inline QFont createFont( int size, int lineHeight,
be adjusted for both the screen density and users preference. be adjusted for both the screen density and users preference.
*/ */
const int pixelSize = qRound( qskDpToPixels( lineHeight ) ); const int pixelSize = qRound( qskDpToPixels( size ) );
QFont font( QStringLiteral( "Roboto" ), -1, weight ); QFont font( QStringLiteral( "Roboto" ), -1, weight );