-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfrontend.kv
More file actions
70 lines (68 loc) · 1.93 KB
/
frontend.kv
File metadata and controls
70 lines (68 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<CameraScreen>:
GridLayout:
cols: 1
padding: 10
spacing: 10
Camera:
id: camera
resolution: (640, 480)
play: False
size_hint_y: 0.8
opacity: 0
Button:
id: camera_button
text: 'Start Camera'
on_press: root.start() if root.ids.camera.play == False else root.stop()
size_hint_y: 0.1
background_normal: 'images/normal.png'
background_down: 'images/down.png'
Button:
text: 'Capture'
on_press: root.capture()
size_hint_y: 0.1
background_normal: 'images/normal.png'
background_down: 'images/down.png'
<ImageScreen>:
GridLayout:
padding: 10
spacing: 10
cols: 1
Image:
id: img
size_hint_y: 0.7
Button:
text: 'Create Sharable Link'
on_press: root.create_link()
size_hint_y: 0.1
background_normal: 'images/normal.png'
background_down: 'images/down.png'
Label:
id: link
text: ''
size_hint_y: 0.1
GridLayout:
cols: 2
size_hint_y: 0.1
Button:
text: 'Copy Link'
on_press: root.copy_link()
background_normal: 'images/normal.png'
background_down: 'images/down.png'
Button:
text: 'Open Link'
on_press: root.open_link()
background_normal: 'images/normal.png'
background_down: 'images/down.png'
<RootWidget>:
canvas.before:
Color:
rgba: (1, 1, 1, 1)
Rectangle:
pos: self.pos
size: self.size
CameraScreen:
id: camera_screen
name: 'camera_screen'
ImageScreen:
id: image_screen
name: 'image_screen'