aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-12 00:18:57 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-11 19:04:26 -0800
commit63cde0e12097835dbd728b95561c0e69a73621f3 (patch)
treea8d00c198395ad0039c64b0f1baa52f9c0c2d730 /qt-mobile/qml/main.qml
parentac1607dce2e58a0840433ff40d37698c25f74d06 (diff)
downloadsubsurface-63cde0e12097835dbd728b95561c0e69a73621f3.tar.gz
dpi improvements for small text
- word-wrap and style the log message at the bottom, this should fix clipping of error messages down there - introduce units.smallPointSize, which defines a small font size to use for toned-down display elements (e.g. the date in the dive list) - No need to assign the default value to Text.text Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/main.qml')
-rw-r--r--qt-mobile/qml/main.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index bbb0806da..d22710ea4 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -18,7 +18,8 @@ ApplicationWindow {
Theme.Units {
id: units
- property int titlePointSize: fontMetrics.font.pointSize * 1.5
+ property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5)
+ property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.7)
}
@@ -134,16 +135,16 @@ ApplicationWindow {
id: messageArea
height: childrenRect.height
Layout.fillWidth: true
+ color: theme.backgroundColor
Text {
id: message
color: theme.textColor
- text: ""
+ wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
styleColor: theme.textColor
- font.pointSize: 10
+ font.pointSize: units.smallPointSize
}
}
-
}
}
}