From 8e018fc70273198c0ef871d414531a32a051d82f Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 21 Feb 2024 17:50:29 +0100 Subject: [PATCH] M3 font sizes changed --- designsystems/material3/QskMaterial3Skin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designsystems/material3/QskMaterial3Skin.cpp b/designsystems/material3/QskMaterial3Skin.cpp index 81c4ce6a..11e727ea 100644 --- a/designsystems/material3/QskMaterial3Skin.cpp +++ b/designsystems/material3/QskMaterial3Skin.cpp @@ -1432,7 +1432,7 @@ QskMaterial3Skin::~QskMaterial3Skin() static inline QFont createFont( int size, int lineHeight, qreal spacing, QFont::Weight weight ) { - Q_UNUSED( size ); + Q_UNUSED( lineHeight ); /* 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 user’s preference. */ - const int pixelSize = qRound( qskDpToPixels( lineHeight ) ); + const int pixelSize = qRound( qskDpToPixels( size ) ); QFont font( QStringLiteral( "Roboto" ), -1, weight );