-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettingsscreen.kv
136 lines (132 loc) · 3.42 KB
/
settingsscreen.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
128
129
130
131
132
133
134
135
136
#:kivy 1.8.0
<PatchingPopup>:
title: 'Patch New Universe'
auto_dismiss: False
GridLayout:
cols: 1
rows: 4
GridLayout:
cols: 2
rows: 1
size_hint: 1, None
height: '45dp'
Label:
text: 'Universe ID:'
size_hint: None, None
height: '35dp'
width: '125dp'
TextInput:
id: universe_id
multiline: False
size_hint: None, None
height: '35dp'
width: '50dp'
GridLayout:
cols: 2
rows: 1
size_hint: 1, None
height: '45dp'
Label:
text: 'Universe Name:'
size_hint: None, None
width: '125dp'
height: '35dp'
TextInput:
id: universe_name
multiline: False
size_hint: None, None
height: '35dp'
width: '150dp'
ListView:
id: device_list
size_hint: 1, 1
GridLayout:
cols: 2
rows: 1
size_hint: 1, None
height: '35dp'
Button:
id: cancel_universe
text: 'Cancel'
size_hint: 1, None
height: '35dp'
on_press: root.dismiss()
Button:
id: patch_universe
text: 'Patch Universe'
size_hint: 1, None
height: '35dp'
on_press: root.patch_universe()
<InfoPopup>:
size_hint: None, None
height: '200dp'
width: '250dp'
title: 'INFO'
GridLayout:
rows: 2
cols: 1
size_hint: 1, 1
Label:
id: info
size_hint: 1, 1
halign: 'center'
Button:
size_hint: 1, None
height: '25dp'
text: 'Close'
on_press: root.dismiss()
<ConfirmationPopup>:
size_hint: None, None
height: '200dp'
width: '250dp'
title: 'ALERT'
GridLayout:
rows: 2
cols: 1
size_hint: 1, 1
Label:
id: confirmation
size_hint: 1, 1
halign: 'center'
GridLayout:
rows: 1
cols: 2
size_hint: 1, None
height: '30dp'
Button:
size_hint: 0.9, 0.9
text: 'Cancel'
on_press: root.dismiss()
Button:
size_hint: 0.9, 0.9
id: confirmation_button
text: 'Confirm'
<MainScreen>:
GridLayout:
id: settings
cols: 1
rows: 5
size_hint: 1, 1
Label:
id: olad_status
size_hint: 1, None
height: '25dp'
Label:
text: 'Active Universes:'
size_hint_y: None
height: '25dp'
ListView:
id: universe_list_view
size_hint: 0.8, 1
Button:
id: patch_button
text: 'Patch New Universe'
size_hint: 0.8, None
height: '25dp'
on_press: root.patch_popup()
Button:
id: unpatch_button
text: 'Unpatch Selected Universe'
size_hint: 0.8, None
on_press: root.unpatch_confirmation()
height: '25dp'