Commit 539ca0ee authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

drawnumber, minor layout adjustments

text number was too big on nexus5
line was too narrow on nexus5
parent 4b642f14
......@@ -87,7 +87,7 @@ ActivityBase {
property var x2: modelData[2] * background.width / 800
property var y2: modelData[3] * background.height / 520
width: Math.sqrt(Math.pow(x - x2, 2) + Math.pow(y- y2, 2))
height: 2
height: 2 * ApplicationInfo.ratio
rotation: (Math.atan((y2 - y)/(x2-x)) * 180 / Math.PI) + (((y2-y) < 0 && (x2-x) < 0) * 180) + (((y2-y) >= 0 && (x2-x) < 0) * 180)
}
......@@ -122,7 +122,7 @@ ActivityBase {
text: index
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
font.pointSize: pointImage.sourceSize.height /2
font.pointSize: 20
font.weight: Font.DemiBold
style: Text.Outline
styleColor: "black"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment