-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.kv
More file actions
193 lines (153 loc) · 5.36 KB
/
Copy pathmain.kv
File metadata and controls
193 lines (153 loc) · 5.36 KB
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
ScreenManager:
id: sm
SplashScreen:
name: 'splash'
LoginScreen:
id: login
name: 'login'
RegisterScreen:
name: 'register'
NavLayoutScreen:
id: nav_layout_screen
name: 'nav_layout_screen'
<NavLayoutScreen@Screen>:
MDNavigationLayout
id: navigation_layout
ScreenManager:
Screen:
BoxLayout:
orientation: 'vertical'
MDToolbar:
id: toolbar
title: 'Class & Section'
elevation: 20
md_bg_color: rgba('#88ABE3')
left_action_items: [['menu', lambda x: nav_drawer.set_state() ]]
ScreenManager:
id: sm
LoginScreen:
id: login
name: 'login'
LobbyScreen:
id: lobby
name: 'lobby'
StudentListScreen:
name: 'studentlist'
ProfileScreen:
name: 'profile'
DummyScreen:
name: 'dummy'
StudentInfoScreen:
name: 'student_info'
AboutScreen:
name: 'about'
MDNavigationDrawer:
id: nav_drawer
ContentNavigationDrawer:
sm: sm
nav_drawer: nav_drawer
<ContentNavigationDrawer>:
orientation: "vertical"
padding: "8dp"
spacing: "8dp"
canvas:
Color:
rgba: rgba('#ffffff')
Rectangle:
source: 'assets/image/md.jpg'
pos: self.x, self.height * .8
size: root.width, root.height / 3
AnchorLayout:
anchor_x: "left"
size_hint_y: None
height: avatar.height
Image:
id: avatar
size_hint: None, None
size: "56dp", "56dp"
keep_ratio: True
source: "assets/image/Simon.png"
MDLabel:
text: app.current_prof
font_style: "Button"
halign: 'left'
bold: True
size_hint_y: None
height: self.texture_size[1]
theme_text_color: 'Custom'
text_color: rgba('#101917')
MDLabel:
text: app.current_prof_email
bold: True
font_style: "Body2"
halign: 'left'
size_hint_y: None
height: self.texture_size[1]
theme_text_color: 'Custom'
text_color: rgba('#101917')
BoxLayout:
orientation: 'vertical'
padding: "8dp"
spacing: '8dp'
ScrollView:
MDList:
OneLineIconListItem:
divider: None
text: 'Lobby'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
on_release:
root.sm.current = "lobby"
root.nav_drawer.set_state("close")
IconLeftWidget:
icon: 'home'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
OneLineIconListItem:
divider: None
text: 'Profile'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
on_release:
root.sm.current = "profile"
root.nav_drawer.set_state("close")
IconLeftWidget:
icon: 'account-circle'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
OneLineIconListItem:
divider: None
text: 'Rate Us'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
on_release:
root.soon()
root.nav_drawer.set_state("close")
IconLeftWidget:
icon: 'star-plus'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
OneLineIconListItem:
divider: None
text: 'About Us'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
on_release:
root.sm.current = "about"
root.nav_drawer.set_state("close")
IconLeftWidget:
icon: 'tag-multiple'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
OneLineIconListItem:
divider: None
text: 'Log out'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')
on_release:
app.root.current = 'login'
root.nav_drawer.set_state("close")
IconLeftWidget:
icon: 'logout'
theme_text_color: 'Custom'
text_color: rgba('#2d607c')