leave a bit of room around headings
make sure heights are integer CCBUG:336123
This commit is contained in:
parent
ba6698e140
commit
09d0c44267
@ -33,7 +33,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
|
|||||||
Text {
|
Text {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
height: Math.max(paintedHeight, theme.mSize(theme.defaultFont).height*1.6)
|
height: Math.round(Math.max(paintedHeight, theme.mSize(theme.defaultFont).height*1.6))
|
||||||
verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
|
verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
|
||||||
|
|
||||||
activeFocusOnTab: false
|
activeFocusOnTab: false
|
||||||
|
@ -55,6 +55,7 @@ Label {
|
|||||||
|
|
||||||
property int step: 2
|
property int step: 2
|
||||||
|
|
||||||
|
height: Math.round(paintedHeight * 1.2)
|
||||||
font.pointSize: headerPointSize(level)
|
font.pointSize: headerPointSize(level)
|
||||||
font.weight: Font.Light
|
font.weight: Font.Light
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user