mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:23:24 +00:00
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:
parent
5195fcf919
commit
ac6b267d40
2 changed files with 8 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import QtQuick 2.3
|
import QtQuick 2.3
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
property color accentColor: "#114d6f"
|
property color accentColor: "#2d5b9a"
|
||||||
property color accentTextColor: "#ececec"
|
property color accentTextColor: "#ececec"
|
||||||
property color textColor: "#333333"
|
property color textColor: "#333333"
|
||||||
property color backgroundColor: "#ececec"
|
property color backgroundColor: "#ececec"
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
import QtQuick 2.3
|
import QtQuick 2.3
|
||||||
|
|
||||||
QtObject {
|
Item {
|
||||||
property int gridUnit: 24
|
property int gridUnit: unitsM.paintedHeight
|
||||||
property int spacing: gridUnit / 3
|
property int spacing: gridUnit / 3
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: unitsM
|
||||||
|
text: "M"
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue