summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2020-04-09 22:21:34 +0200
committerMarvin Borner2020-04-09 22:21:34 +0200
commit0a63c0e671cb015700bbbb97efa8242381b60b55 (patch)
treecc9be9671c118163bd4762b4cfd16e0a65aca6e1
parent22bb752e6907e9d4c3f5159da01d8dfbdfd8b4bc (diff)
tis weri nise
-rw-r--r--qml/Square.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/qml/Square.qml b/qml/Square.qml
index f71f3a5..78b7a5d 100644
--- a/qml/Square.qml
+++ b/qml/Square.qml
@@ -5,16 +5,16 @@ Rectangle {
property string image: ""
width: page.width / 8
height: this.width
- color: ((i >> 3 ^ i) & 1) == 1 ? "#e8ebef" : "#7d8796"
+ color: ((i >> 3 ^ i) & 1) == 0 ? "#e8ebef" : "#7d8796"
border.color: "yellow"
border.width: 0
MouseArea {
anchors.fill: parent
- onClicked: parent.border.width ^= 3
+ onClicked: parent.border.width ^= parseInt(0.1 * parent.width)
}
Image {
- width: parent.width
- height: this.width
+ sourceSize.width: parent.width
+ sourceSize.height: parent.height
source: image
}
}