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:
parent
d36ad128e7
commit
5ef8b1a189
@ -50,7 +50,7 @@ PlasmaComponents.Page {
|
|||||||
|
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
text: "This is the smallest readable Font."
|
text: "This is the smallest readable Font."
|
||||||
font.pointSize: theme.smallestFont.pointSize
|
font: theme.smallestFont
|
||||||
|
|
||||||
}
|
}
|
||||||
Row {
|
Row {
|
||||||
|
@ -62,7 +62,7 @@ Column {
|
|||||||
|
|
||||||
FontGizmo {
|
FontGizmo {
|
||||||
id: giz1
|
id: giz1
|
||||||
font.pointSize: theme.smallestFont.pointSize
|
font: theme.smallestFont
|
||||||
//font.family: "Oxygen-Sans"
|
//font.family: "Oxygen-Sans"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user