-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.kv
127 lines (117 loc) · 3.67 KB
/
test.kv
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#:kivy 1.0.9
#:import Clock kivy.clock.Clock
<OkButton>:
text: root.btn_approve_tx
<CancelButton>:
text: root.btn_reject_tx
#class Satochip(TabbedPanel):
<Satochip>:
size_hint: 1, 1
pos_hint: {'center_x': .5, 'center_y': .5}
do_default_tab: False
label_2FA_label: label_input.text
TabbedPanelItem:
text: 'Tx'
GridLayout:
rows: 2
cols: 1
ScrollView:
do_scroll_x: True
do_scroll_y: True
Label:
#font_size: 20
text: root.display
size_hint_y: None #size_hint_y: 0.65
height: self.texture_size[1]
text_size: self.width, None
padding: 10, 10
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.35
OkButton:
on_release: root.approve_tx(self)
disabled:root.btn_disabled
CancelButton:
on_release: root.approve_tx(self)
disabled:root.btn_disabled
TabbedPanelItem:
text: 'Scan QR'
BoxLayout:
orientation: "vertical"
Label:
text: root.label_qr_data
size_hint_y: 0.5
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.25
Label:
text: "Enter 2FA description here:"
canvas.before:
Color:
rgb: .6, .6, .6
Rectangle:
pos: self.pos
size: self.size
TextInput:
id: label_input
multiline: False
text: root.label_2FA_label
#disabled:root.btn_approve_qr_disabled
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.25
Button:
text: "scan QR code"
on_release: Clock.schedule_once(lambda dt: root.scan_qr(on_complete=root.on_qr))
Button:
text: "confirm QR code"
on_release: root.on_approve_qr()
disabled:root.btn_approve_qr_disabled
TabbedPanelItem:
text: 'Settings'
#BoxLayout:
#orientation: "vertical"
#Label:
#size_hint_y: 0.8
#text: root.label_2FA_stored #'Add or remove 2FA'
GridLayout:
cols: 1
rows: 2
ScrollView:
do_scroll_x: True
do_scroll_y: True
Label:
#size_hint_y: 0.8
#height: self.texture_size[1]
#text_size: self.width, None
#padding: 10, 10
text:root.label_2FA_stored #'really some amazing text\n' * 100 #
BoxLayout:
orientation: "vertical"
Label:
size_hint_y: 0.1
text: "Select cosigner server from this list:"
Spinner:
size_hint_y: 0.1
#size_hint: None, None
#size: 100, 44
#pos_hint: {'center': (.5, .5)}
text: root.myserver_default
values: root.myserver_list
on_text: root.on_server_spinner(self.text)
TabbedPanelItem:
text: 'Logs'
ScrollView:
do_scroll_x: True
do_scroll_y: True
Label:
size_hint_y: None
height: self.texture_size[1]
text_size: self.width, None
padding: 10, 10
text: root.label_logs #'really some amazing text\n' * 100
#RecycleView:
#Label:
#size_hint: None, None
#size: self.texture_size
#text: root.label_logs