Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmaextracomponents/qml/Heading.qml
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 47 | Label { | |||
---|---|---|---|---|---|
64 | font.pointSize: headerPointSize(level) | 64 | font.pointSize: headerPointSize(level) | ||
65 | wrapMode: Text.WordWrap | 65 | wrapMode: Text.WordWrap | ||
66 | 66 | | |||
67 | function headerPointSize(l) { | 67 | function headerPointSize(l) { | ||
68 | var n = theme.defaultFont.pointSize; | 68 | var n = theme.defaultFont.pointSize; | ||
69 | var s; | 69 | var s; | ||
70 | switch (l) { | 70 | switch (l) { | ||
71 | case 1: | 71 | case 1: | ||
72 | return Math.round(n * 1.80) + step; | 72 | return Math.round(n * 1.50) + step; | ||
73 | case 2: | 73 | case 2: | ||
74 | return Math.round(n * 1.30) + step; | 74 | return Math.round(n * 1.30) + step; | ||
75 | case 3: | 75 | case 3: | ||
76 | return Math.round(n * 1.20) + step; | 76 | return Math.round(n * 1.20) + step; | ||
77 | case 4: | 77 | case 4: | ||
78 | return Math.round(n * 1.10) + step; | 78 | return Math.round(n * 1.10) + step; | ||
79 | default: | 79 | default: | ||
80 | return n + step; | 80 | return n + step; | ||
81 | } | 81 | } | ||
82 | } | 82 | } | ||
83 | } | 83 | } |