-
Notifications
You must be signed in to change notification settings - Fork 0
/
detailedview.kv
118 lines (103 loc) · 2.99 KB
/
detailedview.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
<DetailedViewPage>
id: detailed_view_page
orientation: 'vertical'
padding: dp(10)
spacing: dp(10)
MDLabel:
text: str('Task' + str(app.current_hwid))
font_style: 'H5'
size_hint_y: None
size: self.texture_size
BoxLayout:
size_hint: 1, None
size: self.minimum_size
padding: dp(10), 0
spacing: 20
orientation: 'horizontal'
id: row_1
MDTextField:
hint_text: 'Task name'
mode: 'rectangle'
required: True
helper_text_mode: 'on_error'
id: task_name
disabled: True
MDDropDownItem:
id: task_type_dropdown
items: ['Homework', 'Worksheet', 'Quiz', 'Test', 'Project']
dropdown_bg: [1, 1, 1, 1]
disabled: True
MDTextField:
hint_text: 'Subject'
id: task_subject
disabled: True
MDTextField:
multiline: True
hint_text: 'Task Description'
helper_text: 'optional'
helper_text_mode: 'on_focus'
id: task_description
max_text_length: 500
disabled: True
GridLayout:
cols: 2
spacing: 10
MDLabel:
text: 'Task completed?'
size_hint_y: None
size: self.texture_size
size_hint_x: 1
MDSwitch:
id: task_done
size_hint: None, None
size: dp(36), dp(48)
disabled: True
MDLabel:
text: 'Date Set:'
font_style: 'Body1'
size_hint_y: 0.1
size: self.texture_size
MDLabel:
text: 'Date Due:'
font_style: 'Body1'
size_hint_y: 0.1
size: self.texture_size
MDRaisedButton:
id: date_set
text: str(root.today)
size_hint: 1, 0.5
opposite_colors: True
on_release: root.show_date_set_picker()
disabled: True
MDRaisedButton:
id: date_due
text: str(root.today)
elevation_normal: 2
opposite_colors: True
size_hint: 1,0.5
on_release: root.show_date_due_picker()
disabled: True
BoxLayout:
orientation:'horizontal'
spacing: 10
MDRaisedButton:
id: cancel_button
text: "Close"
elevation_normal: 2
opposite_colors: True
size_hint: 1,1
on_release: root.exit_screen()
MDRaisedButton:
id: delete_button
text: 'Delete'
elevation_normal: 2
opposite_colors: True
size_hint: 1,1
on_release: root.show_delete_dialog()
MDRaisedButton:
id: action_button
text: "Edit"
elevation_normal: 2
opposite_colors: True
size_hint: 1,1
on_release: root.action_callback()