5 pad_col_sep: 0 if not self.pad_cols else self.parent.pad_x
8 y: (self.parent.top-self.parent.y) - (self.row) * self.parent.key_size - (self.row - 1) * self.parent.key_sep
9 x: (self.col - 1) * self.parent.key_size + int(self.col - 1) * self.parent.key_sep + self.pad_col_sep
19 width: self.key_width * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
20 height: self.key_height * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
31 rounded_rectangle: self.x + self.line_width, self.y + self.line_width, self.width - 2 * self.line_width, self.height - 2 * self.line_width, 10
32 width: self.line_width
34 rgba: self.line_cross_color
36 points: self.x + self.line_width + 3, self.y + self.line_width + 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.height - 2 * self.line_width - 3
37 width: self.line_width
39 points: self.x + self.line_width + 3, self.y + self.height - 2 * self.line_width - 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.line_width + 3
40 width: self.line_width
43 font_name: h.path() + "fonts/Ubuntu-B.ttf"
44 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size))
46 text: self.parent.key_sym
47 text_size: self.parent.width,self.font_size
51 center_x: self.parent.x + self.texture_size[0] /2 + 5
52 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
54 id: key_description_title
55 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
56 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
58 text: self.parent.description_title
59 text_size: self.parent.width - 2*self.parent.line_width, self.font_size
62 center_x: self.parent.x + self.texture_size[0] /2
63 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
66 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
67 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
69 text: "\n".join(self.parent.description)
70 text_size: 2 * self.parent.width,self.parent.height - key_label.font_size
73 pos: self.parent.x + 2 * self.parent.line_width + 2, self.parent.y
75 size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size
80 rgba: 229/255, 228/255, 226/255, 1
83 size: self.width, self.height
85 key_size: int( (3 * self.width - 16) / 56)
86 key_sep: int( self.key_size / 24)
87 key_pad_sep: int( self.key_size / 7) + 1
89 border: (self.width - self.key_size * 18 - self.key_sep * 16 - self.key_pad_sep)/ 2
91 mapping_height: self.key_size * 6 + self.key_sep * 5
92 mapping_width: self.key_size * 18 + self.key_sep * 16 + self.key_pad_sep
93 mapping_x: self.border
94 mapping_y: self.top - self.mapping_height - self.border
96 key_list_width: 4 * (mock_ubuntu_regular.width or 0)
97 key_list_height: self.height - self.mapping_height - 3 * self.border
98 key_list_x: (self.action_list_width or 0) + 2 * self.border
99 key_list_y: self.border
101 action_list_height: self.height - self.mapping_height - 3 * self.border
102 action_list_width: 3 * self.width / 4 - self.key_list_width - self.border
103 action_list_x: self.border
104 action_list_y: self.border
106 play_list_height: self.action_list_height
107 play_list_width: self.width - self.action_list_width - 3* self.border
108 play_list_y: self.border
109 play_list_x: self.action_list_width + self.key_list_width + 3 * self.border
111 min_height: min(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height)
112 symbola_line_height: self.min_height / max(mock_symbola.height,1)
113 ubuntu_regular_line_height: self.min_height / max(mock_ubuntu_regular.height,1)
114 ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1)
117 font_name: h.path() + "fonts/Symbola.ttf"
118 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
121 text_size: None, None
122 size_hint: None, None
123 size: self.texture_size
125 id: mock_ubuntu_regular
126 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
127 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
130 text_size: None, None
131 size_hint: None, None
132 size: self.texture_size
135 font_name: h.path() + "fonts/Ubuntu-B.ttf"
136 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
139 text_size: None, None
140 size_hint: None, None
141 size: self.texture_size
145 pos: self.parent.mapping_x, self.parent.mapping_y
146 size: self.parent.mapping_width, self.parent.mapping_height
148 key_size: self.parent.key_size
149 key_sep: self.parent.key_sep
150 key_pad_sep: self.parent.key_pad_sep
151 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
154 pos: self.parent.action_list_x, self.parent.action_list_y
155 size: self.parent.action_list_width, self.parent.action_list_height
158 pos: self.parent.key_list_x, self.parent.key_list_y
159 size: self.parent.key_list_width, self.parent.key_list_height
162 pos: self.parent.play_list_x, self.parent.play_list_y
163 size: self.parent.play_list_width, self.parent.play_list_height
166 size_hint: None, None
169 rgba: 250./255, 250./255, 250./255, 1
172 size: self.width, self.height
175 font_name: h.path() + "fonts/Ubuntu-B.ttf"
176 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
178 text: self.parent.first_key
179 text_size: None, None
182 size_hint: None, None
183 size: self.parent.width, self.texture_size[1]
184 pos: 0, self.parent.height - self.height
187 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
188 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
190 text: self.parent.second_key
191 text_size: None, None
194 size_hint: None, None
195 size: self.parent.width, self.texture_size[1]
196 pos: 0, self.parent.height - key_list_first.height - self.height
199 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
200 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
202 text: self.parent.third_key
203 text_size: None, None
206 size_hint: None, None
207 size: self.parent.width, self.texture_size[1]
208 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height
211 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
212 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
214 text: "\n".join(self.parent.keylist[3:])
215 text_size: None, None
218 size_hint: None, None
219 size: self.parent.width, self.texture_size[1]
220 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height
223 size_hint: None, None
226 rgba: 250./255, 250./255, 250./255, 1
229 size: self.width, self.height
232 id: action_list_title
233 font_name: h.path() + "fonts/Ubuntu-B.ttf"
234 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
236 text: self.parent.action_title
237 text_size: None, self.parent.height
240 size_hint: None, None
241 size: self.texture_size[0], self.parent.height
243 id: action_list_icons
244 font_name: h.path() + "fonts/Symbola.ttf"
245 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
246 line_height: self.parent.parent.symbola_line_height or 1
248 text: "\n".join(map(lambda x: x[0], self.parent.action_list))
249 text_size: None, self.parent.height
252 size_hint: None, None
253 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
255 id: action_list_names
256 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
257 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
258 line_height: self.parent.parent.ubuntu_regular_line_height or 1
260 text: "\n".join(map(lambda x: x[1], self.parent.action_list))
261 text_size: None, self.parent.height
264 size_hint: None, None
266 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
269 size_hint: None, None
272 rgba: 250./255, 250./255, 250./255, 1
275 size: self.width, self.height
279 font_name: h.path() + "fonts/Symbola.ttf"
280 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
281 line_height: self.parent.parent.symbola_line_height or 1
283 text: "\n".join(map(lambda x: x[0], self.parent.playlist))
284 text_size: None, self.parent.height
287 size_hint: None, None
288 size: self.texture_size[0], self.parent.height
291 font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours
292 line_height: self.parent.parent.ubuntu_regular_line_height or 1
293 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
295 text: "\n".join(map(lambda x: x[1], self.parent.playlist))
296 text_size: None, self.parent.height
299 size_hint: None, None
301 size: self.texture_size[0], self.parent.height
305 rgba: 250./255, 250./255, 250./255, 1
308 size: self.width, self.height
310 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
311 line_height: self.parent.parent.ubuntu_regular_line_height or 1
312 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
314 text: "\n".join(map(lambda x: x[2], self.parent.playlist))
315 text_size: None, self.parent.height
318 size_hint: None, None
319 pos: self.parent.width - 3 * self.width / 2 - 2 * (self.parent.parent.border or 0), self.y
320 size: self.texture_size[0], self.parent.height
323 size_hint: None, None
330 rgba: 250./255, 250./255, 250./255, 1
333 size: self.width, self.height
335 rgba: self.ready_color
337 pos: self.width - self.key_size / 2, self.height - self.key_size /2
338 size: self.key_size / 3, self.key_size / 3
340 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
341 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
343 text: "volume: {}%".format(self.parent.master_volume)
345 size_hint: None, None
346 size: self.texture_size[0], self.texture_size[1]
347 x: self.parent.width - self.width - 2 * self.parent.key_size / 3
348 center_y: self.parent.height - self.height