-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialogcontents.kv
107 lines (98 loc) · 2.81 KB
/
dialogcontents.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
<Picker>:
location: location
orientation: 'vertical'
spacing: dp(12)
size_hint_y: None
height: dp(100)
MDGridLayout:
rows: 3
MDLabel:
text: "Current: "
size_hint_y: .1
MDLabel:
id: current_location
text: ""
size_hint_y: .2
pos_hint: {"bottom": 1}
MDTextField:
id: location
hint_text: "Enter in (city,region) format"
required: True
keyboard_suggestions: True
helper_text: "Field cannot be left blank"
helper_text_mode: "on_error"
on_focus: if self.focused and self.error: self.error = False
on_text: if self.focused and not self.text: self.error = False
<Error>:
orientation: 'vertical'
spacing: dp(12)
size_hint_y: None
height: dp(40)
MDLabel:
text: "Error fetching weather data. Reverting back to previous location."
font_size: "17sp"
<ConError>:
orientation: 'vertical'
spacing: dp(12)
size_hint_y: None
height: dp(40)
MDLabel:
text: "Connection error. Check for valid internet connection."
font_size: "17sp"
<UnitChanger>:
orientation: 'vertical'
spacing: dp(5)
size_hint_y: None
height: dp(50)
OneLineRightIconListItem:
text: "Switch °F/°C"
divider: None
_no_ripple_effect: True
on_size: self.ids._right_container.height = dp(64)
RightBox:
id: unit_switch
icon_inactive: "temperature-celsius"
icon_active: "temperature-fahrenheit"
on_active: print(self.active)
<GPSError>:
orientation: "vertical"
spacing: dp(5)
size_hint_y: None
height: dp(50)
MDLabel:
text: "The app cannot function without permissions."
<GPSLoading>:
orientation: "vertical"
spacing: dp(5)
size_hint_y: None
height: dp(60)
MDLabel:
text: "Attempting to read GPS location..."
<Credits>:
orientation: "vertical"
spacing: dp(5)
size_hint_y: None
height: dp(160)
MDList:
ThreeLineListItem:
text: "Developed by Juleast"
secondary_text: "Tap here to visit the"
tertiary_text: "developer's profile."
on_release: root.open_dev_credits()
ThreeLineListItem:
text: "Background image by"
secondary_text: "starline on Freepik."
tertiary_text: "Tap here to learn more"
on_release: root.open_img_credits()
<Support>:
orientation: "vertical"
spacing: dp(5)
size_hint_y: None
height: dp(60)
MDList:
OneLineListItem:
text: "Contact Developer"
on_release: root.dev_mail()
OneLineListItem:
text: "Privacy Policy"
on_release: root.privacy()