QML-UI: gridUnit is now dpi-corrected

Signed-off-by: Sebastian Kügler <sebas@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sebastian Kügler 2015-10-09 05:04:44 +02:00 committed by Dirk Hohndel
parent 5195fcf919
commit ac6b267d40
2 changed files with 8 additions and 3 deletions

View file

@ -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"

View file

@ -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"
}
}