-
Notifications
You must be signed in to change notification settings - Fork 1
/
design.kv
187 lines (166 loc) · 4.69 KB
/
design.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<LabeledInput@BoxLayout>:
cols: 2
pos_hint: {"center_x": 0.5}
text: ""
Widget:
Label:
size_hint: (None, None)
text: root.text
width: 200
height: 30
TextInput:
size_hint: (None, None)
width: 400
height: 30
#multiline: False
Widget:
GUILayout:
size: root.width, root.height
#textbox_setups: textbox_setups
border: 20
<LoginScreen>:
name: "login_page"
GridLayout:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'Images/black.jpg'
cols: 1
row_default_height: '30dp'
spacing: 20, 20
LabeledInput:
id: email
text: "Your EMail"
size: root.width - 200, 30
LabeledInput:
id: password
text: "Password"
size: root.width - 200, 30
Widget:
size_hint: None, None
size: root.width, root.height / 4
Label:
text: "Choose delivery mode:"
BoxLayout:
orientation: "horizontal"
columns: 2
allow_stretch: True
ToggleButton:
color: 0.2, 0.2, 0.2, 1
background_normal: "button1.png"
background_down: "button2.png"
borders: 15, 15, 15, 15
group: "means of connection"
text: "Phone"
size_hint: (1, 0.4)
pos_hint: {'top' : 0.5}
on_release: root.set_comm_mode("phone")
ToggleButton:
color: 0.2, 0.2, 0.2, 1
background_normal: "button1.png"
background_down: "button2.png"
borders: 15, 15, 15, 15
group: "means of connection"
text: "Email"
size_hint: (1, 0.4)
pos_hint: {'top' : 0.5}
on_release: root.set_comm_mode("email")
<SetupScreen>:
name: "setup_page"
GridLayout:
id: setup_page
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'Images/black.jpg'
cols: 1
pos: 100, 100
spacing: 10, 10
padding: 50, 50
size_hint: (None, None)
size: (root.width, root.height)
pos_hint: {"center_x": 0.5, "center_y": 0.5}
GridLayout:
id: textbox_setups
cols: 3
spacing: 30, 10
padding: 30, 50
size_hint: (1, 1)
size: (root.width, root.height - 100)
PromptAddNew:
height: 0.4 * root.height
<SendScreen>:
name: "send_page"
entry_fields_box_layout: entry_fields
BoxLayout:
id: send_page
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'Images/black.jpg'
columns: 1
orientation: "vertical"
allow_stretch: True
spacing: 10
padding: 10
#size: root.width, root.height
BoxLayout:
orientation: "horizontal"
allow_stretch: True
spacing: 40
padding: 10
size: 100, 40
Label:
text: "Choose a means of communication:"
pos_hint: { 'top' : 1}
size_hint: (1, None)
height: 30
BoxLayout:
id: entry_fields
orientation: "horizontal"
allow_stretch: True
spacing: 40
padding: 10
size: root.width, root.height*0.7
RoundedButton:
id: button
text: "Send"
pos_hint: {"center_x": 0.5}
size_hint: (0.6, 0.2)
on_press: root.submit()
<InProgressScreen>:
name: "in_progress_page"
ProgressBar:
id: progress_bar
value: 0
min: 0
max: 100
pos_hint: {"center_x": 0.5}
size_hint: 0.8, 0.2
Label:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'text_background.png'
<FileSelector@BoxLayout>:
orientation: "vertical"
file_chooser_type: root.file_chooser_type
cols: 1
BoxLayout:
orienttion: "horizontal"
cols: 2
Button:
id: select_file_button
text: "Select"
TextInput:
id: file_name
multiline: False
FileChooserListView:
id: files
on_selection:
if self.selection: select_file_button.text = "Select " + self.selection[0]
else: select_file_button.text = "Select a file"