Use font: instead of font.pointSize: where possible

Summary:
Otherwise we're discarding style information possibly set in
the user's small font choices when we want to set a smaller
font.

Test Plan: Stuff that's suposta look small still looks small

Reviewers: #plasma, cblack

Reviewed By: #plasma, cblack

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D29436
This commit is contained in:
Nate Graham 2020-05-04 17:18:04 -06:00
parent d36ad128e7
commit 5ef8b1a189
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ PlasmaComponents.Page {
PlasmaComponents.Label {
text: "This is the smallest readable Font."
font.pointSize: theme.smallestFont.pointSize
font: theme.smallestFont
}
Row {

View File

@ -62,7 +62,7 @@ Column {
FontGizmo {
id: giz1
font.pointSize: theme.smallestFont.pointSize
font: theme.smallestFont
//font.family: "Oxygen-Sans"
}