mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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
|
||||
|
||||
QtObject {
|
||||
property color accentColor: "#114d6f"
|
||||
property color accentColor: "#2d5b9a"
|
||||
property color accentTextColor: "#ececec"
|
||||
property color textColor: "#333333"
|
||||
property color backgroundColor: "#ececec"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue