-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgui.kv
139 lines (117 loc) · 4.85 KB
/
gui.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
#:import get_color_from_hex kivy.utils.get_color_from_hex
#:import translate utils.translate
Screen:
BoxLayout:
orientation: 'vertical'
MDTopAppBar:
id: toolbar
title : "Persistent PASTE"
elevation : 3
pos_hint : {'top':1}
right_action_items:
[["flag", lambda x: app.traduction("fr"), "FR", "FR"],]
MDNavigationLayout:
x: toolbar.height
ScreenManager:
id: screen_manager
Screen:
name : "principal"
MDCard:
size_hint: .8, .8
pos_hint: {"center_x": .5, "center_y": .5}
padding: "30dp"
MDBoxLayout:
adaptive_height: True
pos_hint: {"center_x": .5, "center_y": .5}
spacing: 20
orientation: 'vertical'
MDLabel:
id: label
text: translate("entrer_texte", app.lang)
halign: "center"
theme_text_color: "Custom"
text_color: get_color_from_hex('#008080')
font_size: '16sp'
MDBoxLayout:
id: inputDiv
orientation: 'vertical'
adaptive_height: True
spacing: 15
MDBoxLayout:
orientation: 'horizontal'
adaptive_height: True
spacing: 20
MDTextField:
id: paste_1
hint_text: f"{translate('text', app.lang)} 1"
size_hint_x : .75
password: True
MDIconButton:
id: eye_btn_1
icon: "eye"
pos_hint: {"center_x": .5, "center_y": .5}
theme_text_color: "Custom"
user_font_size: "20sp"
text_color: get_color_from_hex('#008080')
on_release : app.showpass(1)
MDLabel:
text: 'Ctrl + Shift + 1'
theme_text_color: "Custom"
text_color: get_color_from_hex('#008080')
font_size: '13sp'
halign: "right"
size_hint_x : .25
MDBoxLayout:
orientation: 'horizontal'
adaptive_height: True
spacing: 20
MDTextField:
id: paste_2
hint_text: f"{translate('text', app.lang)} 2"
size_hint_x : .75
password: True
MDIconButton:
id: eye_btn_2
icon: "eye"
pos_hint: {"center_x": .5, "center_y": .5}
theme_text_color: "Custom"
user_font_size: "20sp"
text_color: get_color_from_hex('#008080')
on_release : app.showpass(2)
MDLabel:
text: 'Ctrl + Shift + 2'
theme_text_color: "Custom"
text_color: get_color_from_hex('#008080')
font_size: '13sp'
halign: "right"
size_hint_x : .25
MDBoxLayout:
orientation: 'horizontal'
adaptive_height: True
spacing: 20
MDTextField:
id: paste_3
hint_text: f"{translate('text', app.lang)} 3"
size_hint_x : .75
password: True
MDIconButton:
id: eye_btn_3
icon: "eye"
pos_hint: {"center_x": .5, "center_y": .5}
theme_text_color: "Custom"
user_font_size: "20sp"
text_color: get_color_from_hex('#008080')
on_release : app.showpass(3)
MDLabel:
text: 'Ctrl + Shift + 3'
theme_text_color: "Custom"
text_color: get_color_from_hex('#008080')
font_size: '13sp'
halign: "right"
size_hint_x : .25
MDRaisedButton:
id: btn
text: translate("enregistrer",app.lang)
md_bg_color: self.theme_cls.primary_color
pos_hint: {"center_x": .5, "center_y": .5}
on_release: app.save()