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