-
Notifications
You must be signed in to change notification settings - Fork 0
/
string.kv
179 lines (160 loc) · 5.06 KB
/
string.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
#:import get_color_from_hex kivy.utils.get_color_from_hex
ScreenManager:
WindowSignin:
WindowSignup:
WindowMain:
<WindowSignin>:
name:"signin"
MDFloatLayout:
Image:
id: gif
source:'./assets/gif.gif'
pos_hint:{'center_x':.5,'center_y':.80}
size_hint: None, None
size: dp(180), dp(180)
anim_delay: .05
anim_loop: 50
anim_reset: True
MDTextField:
id: user_email
mode: "rectangle"
icon_left: "email"
hint_text: "Email"
pos_hint: {'center_x': .5, 'center_y': .5}
size_hint: None,None
width: "250dp"
user_size:"36dp"
MDFillRoundFlatButton:
id:flatbutton
pos_hint:{"center_x":.5,"center_y":.3}
text:"Enter"
size_hint: .5,None
theme_text_color: "Custom"
md_bg_color: .9, 0, .8, 1
on_press:app.database_login()
MDTextButton:
text: "Sign up"
halign: "center"
text: "Sign Up"
theme_text_color: "Custom"
text_color: .9, 0, .8, 1
pos_hint: {'center_x': .72, 'center_y': .1}
on_release:
app.root.current = "signup"
root.manager.transition.direction = "left"
MDLabel:
text: "Dont have an Account ?"
theme_text_color: "Custom"
text_color: 0, 0, 0, 1
pos_hint: {'center_x': .7, 'center_y': .1}
<WindowSignup>:
name:"signup"
Image:
source:'./assets/signup.png'
pos_hint:{'center_x':.5,'center_y':.8}
allow_stretch: True
size_hint: None, None
size: dp(170), dp(170)
MDTextField:
id: name_register
mode: "rectangle"
icon_left: "account-circle-outline"
hint_text: "Name"
pos_hint: {'center_x': .5, 'center_y': .60}
size_hint: None,None
width: "220dp"
user_size:"36dp"
MDTextField:
id: email_register
mode: "rectangle"
icon_left: "email"
hint_text: "Email"
pos_hint: {'center_x': .5, 'center_y': .48}
size_hint: None,None
width: "220dp"
user_size:"36dp"
MDTextField:
id: password_register
mode: "rectangle"
icon_left: "factory"
hint_text: "Sector"
pos_hint: {'center_x': .5, 'center_y': .36}
size_hint: None,None
width: "220dp"
user_size:"36dp"
MDFillRoundFlatButton:
id:register_btn
text: "Register"
size_hint: .4, None
theme_text_color: "Custom"
md_bg_color: .9, 0, .8, 1
pos_hint: {"center_x":.5,"center_y": .20}
on_release:
app.signup_register()
MDFillRoundFlatButton:
id:back_btn
text: "Back"
size_hint: .4, None
theme_text_color: "Custom"
md_bg_color: .5, .5, .5, 1
pos_hint: {"center_x":.5,"center_y": .10}
on_release:
app.root.current = "signin"
root.manager.transition.direction = "right"
<WindowMain>:
name:"main"
MDBottomNavigation:
panel_color: get_color_from_hex("#eeeaea")
selected_color_background: get_color_from_hex("#97ecf8")
text_color_active: 0.7, 0, 1, 1
MDBottomNavigationItem:
name: 'screen 1'
text: 'Order'
icon: 'file-document'
MDLabel:
id: label_welcome
halign: 'center'
pos_hint: {"center_x":.3,"center_y":.9}
MDLabel:
text: 'Select your issue'
halign: 'center'
pos_hint: {"center_x":.5,"center_y":.8}
MDTextField:
id: field_issue
pos_hint: {'center_x': .5, 'center_y': .7}
size_hint_x: None
width: "200dp"
hint_text: "Issue"
on_focus: if self.focus: app.menu.open()
MDTextField:
id:field_describe
multiline: True
mode: "rectangle"
hint_text: "Describe your issue:"
size_hint: None,.3
width: "250dp"
pos_hint: {'center_x': .5, 'center_y': .42}
MDFillRoundFlatButton:
id:send_request
text: "Send"
size_hint: .4, None
theme_text_color: "Custom"
md_bg_color: .5, .5, .5, 1
pos_hint: {"center_x":.5,"center_y": .15}
on_release:
app.requests()
MDBottomNavigationItem:
id:screen2
name: 'screen2'
text: 'Queue'
icon: 'human-queue'
on_tab_press:
app.queue()
ScrollView:
id:scroll
MDList:
id:container
MDBottomNavigationItem:
name: 'screen 3'
text: 'Historic'
icon: 'clipboard-file'