aboutsummaryrefslogtreecommitdiff
path: root/Editor.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Editor.qml')
-rw-r--r--Editor.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/Editor.qml b/Editor.qml
index 6060767..b05c3d9 100644
--- a/Editor.qml
+++ b/Editor.qml
@@ -150,7 +150,10 @@ Rectangle
context.beginPath().rect((start.x + max + offset) * scalexy, (max - start.y + offset) * scalexy,
size.width * scalexy, size.height * scalexy)
if ( fill )
+ {
+ context.fillStyle = (fill === 1 ? "black" : "white")
context.fill()
+ }
else
context.stroke()
}
@@ -160,7 +163,10 @@ Rectangle
context.beginPath().ellipse((center.x + max - radius + offset) * scalexy,
(max - center.y - radius + offset) * scalexy, radius * 2 * scalexy, radius * 2 * scalexy)
if ( fill )
+ {
+ context.fillStyle = (fill === 1 ? "black" : "white")
context.fill()
+ }
else
context.stroke()
}
@@ -229,7 +235,7 @@ Rectangle
paintgrid(context)
context.strokeStyle = "black"
- context.fillStyle = "black"
+// context.fillStyle = "black"
paintsymbol(context)