-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.kv
More file actions
262 lines (229 loc) · 12.7 KB
/
help.kv
File metadata and controls
262 lines (229 loc) · 12.7 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
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
#:import get_color_from_hex kivy.utils.get_color_from_hex
<HelpScreen>:
name: "help"
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#E0E0E0") or get_color_from_hex("#0A0E17")
MDBoxLayout:
orientation: "vertical"
# AppBar
MDBoxLayout:
orientation: "horizontal"
size_hint_y: None
height: "56dp"
padding: ["8dp", "0dp", "8dp", "0dp"]
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#455A64") or get_color_from_hex("#1A2130")
# Back button
MDIconButton:
icon: "arrow-left"
theme_text_color: "Custom"
text_color: get_color_from_hex("#ffffff")
pos_hint: {"center_y": .5}
on_release: app.screen_manager.current = "main"
# Title
MDLabel:
text: "Help"
theme_text_color: "Custom"
text_color: get_color_from_hex("#ffffff")
font_style: "H6"
bold: True
pos_hint: {"center_y": .5}
# Content
ScrollView:
do_scroll_x: False
do_scroll_y: True
MDBoxLayout:
orientation: "vertical"
padding: "16dp"
spacing: "20dp"
adaptive_height: True
# Help Title
MDLabel:
text: "How to Use DataCrypt"
font_style: "H5"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#00E676")
halign: "center"
bold: True
size_hint_y: None
height: "48dp"
# Encryption Section
MDCard:
orientation: "vertical"
padding: "16dp"
spacing: "8dp"
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#FFFFFF") or get_color_from_hex("#162029")
radius: [4,]
elevation: 1
size_hint_y: None
height: encrypt_content.height + dp(80)
# Section Header
MDBoxLayout:
orientation: "horizontal"
adaptive_height: True
spacing: "12dp"
size_hint_y: None
height: "48dp"
MDIcon:
icon: "lock"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#00E676")
size_hint: None, None
size: "24dp", "24dp"
pos_hint: {"center_y": .5}
MDLabel:
text: "Encrypting Files"
font_style: "H6"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#00E676")
bold: True
MDLabel:
id: encrypt_content
text: "1. Enter an encryption key or click 'Generate' to create a secure key\n2. Click 'Browse Files' to select the file you want to encrypt\n3. Click 'ENCRYPT FILE' to encrypt your file\n4. Your encrypted file will be saved in the same location with no file extension\n\nIMPORTANT: Remember your encryption key! Without it, you won't be able to decrypt your files."
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#212121") or get_color_from_hex("#E0E0E0")
adaptive_height: True
# Decryption Section
MDCard:
orientation: "vertical"
padding: "16dp"
spacing: "8dp"
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#FFFFFF") or get_color_from_hex("#162029")
radius: [4,]
elevation: 1
size_hint_y: None
height: decrypt_content.height + dp(80)
# Section Header
MDBoxLayout:
orientation: "horizontal"
adaptive_height: True
spacing: "12dp"
size_hint_y: None
height: "48dp"
MDIcon:
icon: "lock-open"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#00BCD4")
size_hint: None, None
size: "24dp", "24dp"
pos_hint: {"center_y": .5}
MDLabel:
text: "Decrypting Files"
font_style: "H6"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#00BCD4")
bold: True
MDLabel:
id: decrypt_content
text: "1. Enter the same encryption key that was used to encrypt the file\n2. Click 'Encrypted Files' to browse and select your encrypted file\n3. Click 'DECRYPT FILE' to decrypt your file\n4. Your decrypted file will be saved in the same location with its original extension"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#212121") or get_color_from_hex("#E0E0E0")
adaptive_height: True
# Key Management
MDCard:
orientation: "vertical"
padding: "16dp"
spacing: "8dp"
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#FFFFFF") or get_color_from_hex("#162029")
radius: [4,]
elevation: 1
size_hint_y: None
height: key_content.height + dp(80)
# Section Header
MDBoxLayout:
orientation: "horizontal"
adaptive_height: True
spacing: "12dp"
size_hint_y: None
height: "48dp"
MDIcon:
icon: "key-variant"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#FFAB00")
size_hint: None, None
size: "24dp", "24dp"
pos_hint: {"center_y": .5}
MDLabel:
text: "Key Management"
font_style: "H6"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#FFAB00")
bold: True
MDLabel:
id: key_content
text: "• Always store your encryption keys in a secure location\n• Use different keys for different types of files for enhanced security\n• The 'Generate' button creates a strong, random encryption key\n• You can use your own key, but make sure it's complex enough to be secure\n• Never share your encryption keys with untrusted parties"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#212121") or get_color_from_hex("#E0E0E0")
adaptive_height: True
# Security Tips
MDCard:
orientation: "vertical"
padding: "16dp"
spacing: "8dp"
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#FFFFFF") or get_color_from_hex("#162029")
radius: [4,]
elevation: 1
size_hint_y: None
height: tips_content.height + dp(80)
# Section Header
MDBoxLayout:
orientation: "horizontal"
adaptive_height: True
spacing: "12dp"
size_hint_y: None
height: "48dp"
MDIcon:
icon: "shield-key"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#FF5252")
size_hint: None, None
size: "24dp", "24dp"
pos_hint: {"center_y": .5}
MDLabel:
text: "Security Tips"
font_style: "H6"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#FF5252")
bold: True
MDLabel:
id: tips_content
text: "• DataCrypt uses AES-256 encryption, which is military-grade security\n• Keep your device secure with up-to-date antivirus software\n• Consider using a password manager to store your encryption keys\n• Always keep backups of your original files in a secure location\n• If you suspect your key has been compromised, re-encrypt your files with a new key"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#212121") or get_color_from_hex("#E0E0E0")
adaptive_height: True
# Support
MDCard:
orientation: "vertical"
padding: "16dp"
spacing: "8dp"
md_bg_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#FFFFFF") or get_color_from_hex("#162029")
radius: [4,]
elevation: 1
size_hint_y: None
height: "110dp" # Adjusted height
MDLabel:
text: "Need More Help?"
font_style: "H6"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#000000") or get_color_from_hex("#00E676")
bold: True
size_hint_y: None
height: "30dp" # Reduced height
MDBoxLayout:
orientation: "vertical"
adaptive_height: True
spacing: "2dp"
padding: [0, "2dp", 0, "2dp"]
MDLabel:
text: "Contact us at:"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#424242") or get_color_from_hex("#9E9E9E")
font_style: "Body1"
bold: True
size_hint_y: None
height: "24dp" # Reduced height
MDLabel:
text: "[ref=mailto:piyushgosavi90@gmail.com]piyushgosavi90@gmail.com[/ref]"
theme_text_color: "Custom"
text_color: app.theme_cls.theme_style == "Light" and get_color_from_hex("#2196F3") or get_color_from_hex("#64B5F6")
font_style: "Body1"
markup: True
on_ref_press: import webbrowser; webbrowser.open("mailto:piyushgosavi90@gmail.com")