This repository has been archived on 2024-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2024-12-22/mockenv/lib/python3.6/site-packages/kivy_garden/qrcode/qrcode_widget.kv
2022-07-22 16:13:59 +05:30

27 lines
895 B
Plaintext

<QRCodeWidget>
on_parent: if args[1]: qrimage.source = self.loading_image
canvas.before:
# Draw white Rectangle
Color:
rgba: root.background_color
Rectangle:
size: self.size
pos: self.pos
canvas.after:
Color:
rgba: .5, .5, .5, 1 if root.show_border else 0
Line:
width: dp(1.333)
points:
self.x + dp(2), self.y + dp(2),\
self.x + self.width - dp(2), self.y + dp(2),\
self.x + self.width - dp(2), self.y + self.height - dp(2),\
self.x + dp(2), self.y + self.height - dp(2),\
self.x + dp(2), self.y + dp(2)
Image
id: qrimage
pos_hint: {'center_x': .5, 'center_y': .5}
allow_stretch: True
size_hint: None, None
size: root.width * .9, root.height * .9