summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-10-09 05:04:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-09 12:51:54 -0700
commitac6b267d404f3d3675312b868a74f00c18bab3b2 (patch)
treefc5f6ec0bdd22b0c4657fe34a42c4f6438c81dc7 /qt-mobile
parent5195fcf919a1b34410fbb99498571752137adce1 (diff)
downloadsubsurface-ac6b267d404f3d3675312b868a74f00c18bab3b2.tar.gz
QML-UI: gridUnit is now dpi-corrected
Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/theme/Theme.qml2
-rw-r--r--qt-mobile/theme/Units.qml9
2 files changed, 8 insertions, 3 deletions
diff --git a/qt-mobile/theme/Theme.qml b/qt-mobile/theme/Theme.qml
index 021b2f2aa..c4cfbf077 100644
--- a/qt-mobile/theme/Theme.qml
+++ b/qt-mobile/theme/Theme.qml
@@ -1,7 +1,7 @@
import QtQuick 2.3
QtObject {
- property color accentColor: "#114d6f"
+ property color accentColor: "#2d5b9a"
property color accentTextColor: "#ececec"
property color textColor: "#333333"
property color backgroundColor: "#ececec"
diff --git a/qt-mobile/theme/Units.qml b/qt-mobile/theme/Units.qml
index 6b477b089..d4b4aa774 100644
--- a/qt-mobile/theme/Units.qml
+++ b/qt-mobile/theme/Units.qml
@@ -1,6 +1,11 @@
import QtQuick 2.3
-QtObject {
- property int gridUnit: 24
+Item {
+ property int gridUnit: unitsM.paintedHeight
property int spacing: gridUnit / 3
+
+ Text {
+ id: unitsM
+ text: "M"
+ }
} \ No newline at end of file