-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjarvis.kv
613 lines (478 loc) · 15.6 KB
/
jarvis.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
#:import Toolbar mat.toolbar.Toolbar
#:import MDList mat.list.MDList
#:import ThemeManager mat.theming.ThemeManager
#:import NavigationDrawer mat.navigationdrawer.NavigationDrawer
#:import MDCheckbox mat.selectioncontrols.MDCheckbox
#:import MDSwitch mat.selectioncontrols.MDSwitch
#:import OneLineListItem mat.list.OneLineListItem
#:import TwoLineListItem mat.list.TwoLineListItem
#:import ThreeLineListItem mat.list.ThreeLineListItem
#:import OneLineAvatarListItem mat.list.OneLineAvatarListItem
#:import OneLineIconListItem mat.list.OneLineIconListItem
#:import OneLineAvatarIconListItem mat.list.OneLineAvatarIconListItem
#:import SingleLineTextField mat.textfields.SingleLineTextField
#:import MDSpinner mat.spinner.MDSpinner
#:import MDCard mat.card.MDCard
#:import get_color_from_hex kivy.utils.get_color_from_hex
#:import colors mat.color_definitions.colors
#:import SmartTile mat.grid.SmartTile
#:import SmartTileWithLabel mat.grid.SmartTileWithLabel
#:import MDSlider mat.slider.MDSlider
#:import MDLabel mat.label.MDLabel
#:import MDDialog mat.dialog.MDDialog
#:import Jarvis main
#:import Gallery gallery
#:import Loader main
<DBScroll>:
id: dbscroll
title: ''
size_hint: None, None
size: 400,100
FloatLayout:
Label:
text: 'Sending'
pos_hint:{'center_x': 0.8, 'center_y': 0.7}
size_hint: None, None
size: 50,100
MDSpinner:
size_hint: None,None
size: dp(30),dp(30)
pos_hint:{'center_x': 0.2, 'center_y': 0.7}
<MainScreen>:
Image:
source: 'tower.png'
#BoxLayout:
# orientation: 'vertical'
Toolbar:
id: toolbar
title: 'GoshenApp'
right_action_items: [['menu', lambda x: app.nav_drawer.toggle()]]
<F>:
name: name
message: message
id: sub_button
title: 'Share Your Testimony'
markup: True
size_hint: .9, None
height: dp(300)
pos_hint:{'center_x': 0.5, 'center_y': 0.65}
background: 'white.png'
FloatLayout:
SingleLineTextField:
id: name
hint_text: 'Name'
multiline: False
pos_hint:{'center_x': 0.5, 'center_y': 0.8}
SingleLineTextField:
id: message
hint_text: 'Message'
multiline: True
pos_hint:{'center_x': 0.5, 'center_y': 0.5}
MDFlatButton:
text: 'ShieeeeeeM)'
pos_hint:{'center_x': 0.5, 'center_y': 0.2}
on_press: root.shiemor()
<Testimonies>:
Image:
source: 'tower.png'
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "It is always good to share what the Lord has done in your life to encourage\nothers in the church "
halign: 'center'
pos_hint:{'center_x': 0.5, 'center_y': 0.85}
font_size: 25
MDRaisedButton:
text: " Testify"
opposite_colors: True
size_hint: None, None
size: 4 * dp(40), dp(40)
pos_hint: {'center_x': 0.2, 'center_y': 0.3}
font_name: 'Roboto-Regular'
on_release: root.share();
MDRaisedButton:
text: " read"
opposite_colors: True
size_hint: None, None
size: 4 * dp(40), dp(40)
pos_hint: {'center_x': 0.8, 'center_y': 0.3}
font_name: 'Roboto-Regular'
on_release: root.read()
<Pastors>:
pas_text_field:pas_text_field
name_text_field:name_text_field
Image:
source: 'tower.png'
FloatLayout:
SingleLineTextField:
id: name_text_field
size_hint: 0.6, None
height: dp(48)
hint_text: "Name "
pos_hint: {'center_x':.5, 'center_y': .7}
font_name:'Roboto-Thin'
SingleLineTextField:
id: pas_text_field
size_hint: 0.6, None
height: dp(48)
hint_text: "Password "
pos_hint: {'center_x':.5, 'center_y': .5}
font_name:'Roboto-Thin'
password: True
MDRaisedButton:
text: "Login"
opposite_colors: True
size_hint: None, None
size: 4 * dp(40), dp(40)
pos_hint: {'center_x': 0.5, 'center_y': 0.3}
font_name: 'Roboto-Regular'
on_release: root.login()
<DownPopup>:
play_stop:play_stop
size_hint: None,None
size: dp(370),dp(120)
pos_hint:{'center_x': 0.5, 'center_y': 0.65}
BoxLayout:
orientation:'horizontal'
Button:
id: play_stop
text:'Play'
on_release: root.play()
Button:
text:'Download'
on_release: root.download()
Button:
text:'Share Link'
on_release: root.share()
<Sermons>
scroller: scroller
grid: grid
spinner:spinner
box2: box2
#search_input: search_input
BoxLayout:
id: box1
orientation:'vertical'
BoxLayout:
id: box2
height: "40dp"
size_hint_y: None
TextInput:
id: search_input
text: ''
hint_text:'Search Sermon Here :-)'
BoxLayout:
FloatLayout:
ScrollView:
id: scroller
do_scroll_x: False
MDList:
id: grid
cols: 1
#row_default_height: (self.width - self.cols*self.spacing[0])/self.cols
#row_force_default: True
size_hint_y: None
height: 8 * dp(100) # /1 * self.row_default_height
padding: dp(4), dp(4)
spacing: dp(4)
SmartTileWithLabel:
text:'Tap To Load Images'
source: 'tower.png'
on_press: root.load()
MDSpinner:
id: spinner
size_hint: None,None
size: dp(30),dp(30)
pos_hint:{'center_x': 0.5, 'center_y': 0.8}
active: False
<Requests>:
name: name
prayer: prayer
Image:
source: 'tower.png'
FloatLayout:
MDLabel:
font_style: 'Body1'
theme_text_color: 'Primary'
text: "Phil 4:6\nDont\'t worry about anything;instead pray about everything. Tell God what you need and thank him for all he has done"
halign: 'center'
pos_hint:{'center_x': 0.5, 'center_y': 0.85}
markup: True
font_size: 25
color: 1, 0, 0, 1
SingleLineTextField:
id: name
size_hint: 0.6, None
height: dp(48)
hint_text: "Full Name "
pos_hint: {'center_x':.5, 'center_y': .6}
font_name:'Roboto-Thin'
multiline: False
SingleLineTextField:
id: prayer
size_hint: 0.6, None
height: dp(50)
hint_text: "Prayer "
pos_hint: {'center_x':.5, 'center_y': .4}
font_name:'Roboto-Thin'
multiline: True
hint_text: "Type Your Requests Here"
MDFloatingActionButton:
id: float_act_btn
icon:'plus'
size_hint: None, None
size: dp(56), dp(56)
opposite_colors: True
elevation_normal: 8
pos_hint:{'center_x': 0.8, 'center_y': 0.2}
on_release: root.add_request();prayer.text='';name.text=''#;root.send_notify()
<RequestsReader>:
BoxLayout:
orientation: 'vertical'
padding: 5
spacing: 5
Button:
text: "READ REQUESTS"
background_normal: 'back_norm4.png'
on_release: root.load_requests()
MDRaisedButton:
text: "Add Annoucements"
on_release: root.add_announce()
Button:
text: "READ REQUESTS"
background_normal: 'back_norm2.png'
<Announce>:
message: message
title: 'Add Announcement'
markup: True
size_hint: .9, None
height: dp(300)
pos_hint:{'center_x': 0.5, 'center_y': 0.65}
FloatLayout:
SingleLineTextField:
id: message
hint_text: 'Message To Annouce'
multiline: False
pos_hint:{'center_x': 0.5, 'center_y': 0.8}
MDFloatingActionButton:
id: float_act_btn
icon:'plus'
size_hint: None, None
size: dp(56), dp(56)
opposite_colors: True
elevation_normal: 8
pos_hint:{'center_x': 0.8, 'center_y': 0.2}
on_release: root.add_announce()
<TithePopup>:
amount:amount
add:add
size_hint: .6, None
height: dp(300)
pos_hint:{'center_x': 0.5, 'center_y': 0.65}
BoxLayout:
orientation:'vertical'
TextInput:
id: amount
hint_text: 'Amount'
font_size: 50
BoxLayout:
orientation: 'horizontal'
Button:
id: add
text: 'Add'
on_press: root.on_add(root.title,int(amount.text))
<TitheViewer>:
ml:ml
Image:
source: 'tower.png'
ScrollView:
id: scroller
do_scroll_x: False
bar_color: [.1, .5, .7, .9]
bar_margin: 3
bar_width: 5
MDList:
id: ml
<Tithe>:
months: months
Image:
source:'tower.png'
ScrollView:
id: scroller
do_scroll_x: False
GridLayout:
padding: 4
spacing: 4
cols: 2
id: months
size_hint_y: None
height: 8 * dp(100) # /1 * self.row_default_height
MDFloatingActionButton:
id: float_act_btn
icon:'receipt' #chart
size_hint: None, None
size: dp(60), dp(60)
opposite_colors: True
elevation_normal: 8
pos_hint:{'center_x': 0.8, 'center_y': 0.2}
on_press: app.change_screen('tithe_viewer')
<Gallery>:
scroller: scroller
grid: grid
spinner:spinner
ScrollView:
id: scroller
do_scroll_x: False
MDList:
id: grid
cols: 2
#row_default_height: (self.width - self.cols*self.spacing[0])/self.cols
#row_force_default: True
size_hint_y: None
height: 8 * dp(100) # /1 * self.row_default_height
padding: dp(4), dp(4)
spacing: dp(4)
SmartTileWithLabel:
text:'Tap To Load Images'
source: 'tower.png'
on_press: root.load()
MDSpinner:
id: spinner
size_hint: None,None
size: dp(30),dp(30)
pos_hint:{'center_x': 0.5, 'center_y': 0.8}
active: False
<Announcements>:
ml:ml
scroller:scroller
Image:
source: 'tower.png'
ScrollView:
id: scroller
do_scroll_x: False
bar_color: [.1, .5, .7, .9]
bar_margin: 3
bar_width: 5
MDList:
id: ml
MDFlatButton:
id: button
text: 'Load Contacts'
pos_hint:{'center_x': 0.5, 'center_y': 0.5}
on_release: root.load_announcements()
<Search>:
ml:ml
scroller: scroller
BoxLayout:
orientation:'vertical'
BoxLayout:
id: box1
height: "40dp"
size_hint_y: None
TextInput:
id: search_input
size_hint_x: 75
text:''
BoxLayout:
FloatLayout:
ScrollView:
id: scroller
do_scroll_x: False
bar_color: [.1, .5, .7, .9]
bar_margin: 3
bar_width: 5
MDList:
id: ml
MDFloatingActionButton:
id: float_act_btn
icon:'flip-to-back' #chart
size_hint: None, None
size: dp(60), dp(60)
opposite_colors: True
elevation_normal:8
pos_hint:{'center_x': 0.9, 'center_y': 0.15}
on_press: app.change_screen('screen1')
<Quotes>:
ml:ml
scroller: scroller
BoxLayout:
orientation:'vertical'
BoxLayout:
id: box1
height: "40dp"
size_hint_y: None
TextInput:
id: search_input
size_hint_x: 75
text:''
BoxLayout:
FloatLayout:
ScrollView:
id: scroller
do_scroll_x: False
bar_color: [.1, .5, .7, .9]
bar_margin: 3
bar_width: 5
MDList:
id: ml
MDFloatingActionButton:
id: float_act_btn
icon:'flip-to-back' #chart
size_hint: None, None
size: dp(60), dp(60)
opposite_colors: True
elevation_normal:8
pos_hint:{'center_x': 0.15, 'center_y': 0.15}
on_press: app.change_screen('screen1')
<Drawer>:
title: "Tower of Favour"
NavigationDrawerIconButton:
icon: 'mic'
text: "Testimonies"
#on_release: app.root.current = 'testimonies'
on_press: app.change_screen('testimonies')
NavigationDrawerIconButton:
icon: 'fire'
text: "Prayer Requests"
source: 'img/bg_home.png'
on_release: app.change_screen('requests')
NavigationDrawerIconButton:
icon: 'headset'
text: "Audio Sermons"
on_release: app.change_screen('sermons')
NavigationDrawerIconButton:
icon: 'calendar-check'
text: "Daily Guide"
on_release: app.change_screen('guide')
NavigationDrawerIconButton:
icon: 'pin-account'
text: "Pastors Circle"
on_release: app.change_screen('pastors')
NavigationDrawerIconButton:
icon: 'info'
text: "Announcements"
on_release: app.change_screen('announcements')
NavigationDrawerIconButton:
icon: 'calendar-alt'
text: "Calender"
on_release: app.change_screen('calender')
NavigationDrawerIconButton:
icon: 'balance-wallet'
text: "Tithe Calculator"
on_release: app.change_screen('tithe')
NavigationDrawerIconButton:
icon: 'slideshow'
text: "Gallery"
on_release: app.change_screen('gallery');
NavigationDrawerIconButton:
icon: 'dialpad'
text: "Search"
on_release: app.change_screen('search');
NavigationDrawerIconButton:
icon: 'quote'
text: "Quotes"
on_release: app.change_screen('quotes')
NavigationDrawerIconButton:
icon: 'flip-to-back'
text: "Back"
on_release: app.change_screen('screen1')