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
35 font_name: h.path() + "fonts/Ubuntu-B.ttf"
36 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size))
38 text: self.parent.key_sym
39 text_size: self.parent.width,self.font_size
43 center_x: self.parent.x + self.texture_size[0] /2 + 5
44 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
46 id: key_description_title
47 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
48 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
50 text: self.parent.description_title
51 text_size: self.parent.width - 2*self.parent.line_width, self.font_size
54 center_x: self.parent.x + self.texture_size[0] /2
55 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
58 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
59 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
61 text: "\n".join(self.parent.description)
62 text_size: 2 * self.parent.width,self.parent.height - key_label.font_size
65 pos: self.parent.x + 2 * self.parent.line_width + 2, self.parent.y
67 size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size
72 rgba: 229/255, 228/255, 226/255, 1
75 size: self.width, self.height
77 key_size: int( (3 * self.width - 16) / 56)
78 key_sep: int( self.key_size / 24)
79 key_pad_sep: int( self.key_size / 7) + 1
81 border: (self.width - self.key_size * 18 - self.key_sep * 16 - self.key_pad_sep)/ 2
83 mapping_height: self.key_size * 6 + self.key_sep * 5
84 mapping_width: self.key_size * 18 + self.key_sep * 16 + self.key_pad_sep
85 mapping_x: self.border
86 mapping_y: self.top - self.mapping_height - self.border
88 key_list_width: 4 * (mock_ubuntu_regular.width or 0)
89 key_list_height: self.height - self.mapping_height - 3 * self.border
90 key_list_x: (self.action_list_width or 0) + 2 * self.border
91 key_list_y: self.border
93 action_list_height: self.height - self.mapping_height - 3 * self.border
94 action_list_width: 3 * self.width / 4 - self.key_list_width - self.border
95 action_list_x: self.border
96 action_list_y: self.border
98 play_list_height: self.action_list_height
99 play_list_width: self.width - self.action_list_width - 3* self.border
100 play_list_y: self.border
101 play_list_x: self.action_list_width + self.key_list_width + 3 * self.border
103 min_height: min(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height)
104 symbola_line_height: self.min_height / max(mock_symbola.height,1)
105 ubuntu_regular_line_height: self.min_height / max(mock_ubuntu_regular.height,1)
106 ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1)
109 font_name: h.path() + "fonts/Symbola.ttf"
110 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
113 text_size: None, None
114 size_hint: None, None
115 size: self.texture_size
117 id: mock_ubuntu_regular
118 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
119 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
122 text_size: None, None
123 size_hint: None, None
124 size: self.texture_size
127 font_name: h.path() + "fonts/Ubuntu-B.ttf"
128 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
131 text_size: None, None
132 size_hint: None, None
133 size: self.texture_size
137 pos: self.parent.mapping_x, self.parent.mapping_y
138 size: self.parent.mapping_width, self.parent.mapping_height
140 key_size: self.parent.key_size
141 key_sep: self.parent.key_sep
142 key_pad_sep: self.parent.key_pad_sep
143 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
146 pos: self.parent.action_list_x, self.parent.action_list_y
147 size: self.parent.action_list_width, self.parent.action_list_height
150 pos: self.parent.key_list_x, self.parent.key_list_y
151 size: self.parent.key_list_width, self.parent.key_list_height
154 pos: self.parent.play_list_x, self.parent.play_list_y
155 size: self.parent.play_list_width, self.parent.play_list_height
158 size_hint: None, None
161 rgba: 250./255, 250./255, 250./255, 1
164 size: self.width, self.height
167 font_name: h.path() + "fonts/Ubuntu-B.ttf"
168 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
170 text: self.parent.first_key
171 text_size: None, None
174 size_hint: None, None
175 size: self.parent.width, self.texture_size[1]
176 pos: 0, self.parent.height - self.height
179 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
180 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
182 text: self.parent.second_key
183 text_size: None, None
186 size_hint: None, None
187 size: self.parent.width, self.texture_size[1]
188 pos: 0, self.parent.height - key_list_first.height - self.height
191 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
192 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
194 text: self.parent.third_key
195 text_size: None, None
198 size_hint: None, None
199 size: self.parent.width, self.texture_size[1]
200 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height
203 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
204 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
206 text: "\n".join(self.parent.keylist[3:])
207 text_size: None, None
210 size_hint: None, None
211 size: self.parent.width, self.texture_size[1]
212 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height
215 size_hint: None, None
218 rgba: 250./255, 250./255, 250./255, 1
221 size: self.width, self.height
224 id: action_list_title
225 font_name: h.path() + "fonts/Ubuntu-B.ttf"
226 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
228 text: self.parent.action_title
229 text_size: None, self.parent.height
232 size_hint: None, None
233 size: self.texture_size[0], self.parent.height
235 id: action_list_icons
236 font_name: h.path() + "fonts/Symbola.ttf"
237 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
238 line_height: self.parent.parent.symbola_line_height or 1
240 text: "\n".join(map(lambda x: x[0], self.parent.action_list))
241 text_size: None, self.parent.height
244 size_hint: None, None
245 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
247 id: action_list_names
248 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
249 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
250 line_height: self.parent.parent.ubuntu_regular_line_height or 1
252 text: "\n".join(map(lambda x: x[1], self.parent.action_list))
253 text_size: None, self.parent.height
256 size_hint: None, None
258 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
261 size_hint: None, None
264 rgba: 250./255, 250./255, 250./255, 1
267 size: self.width, self.height
271 font_name: h.path() + "fonts/Symbola.ttf"
272 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
273 line_height: self.parent.parent.symbola_line_height or 1
275 text: "\n".join(map(lambda x: x[0], self.parent.playlist))
276 text_size: None, self.parent.height
279 size_hint: None, None
280 size: self.texture_size[0], self.parent.height
283 font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours
284 line_height: self.parent.parent.ubuntu_regular_line_height or 1
285 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
287 text: "\n".join(map(lambda x: x[1], self.parent.playlist))
288 text_size: None, self.parent.height
291 size_hint: None, None
293 size: self.texture_size[0], self.parent.height
297 rgba: 250./255, 250./255, 250./255, 1
300 size: self.width, self.height
302 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
303 line_height: self.parent.parent.ubuntu_regular_line_height or 1
304 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
306 text: "\n".join(map(lambda x: x[2], self.parent.playlist))
307 text_size: None, self.parent.height
310 size_hint: None, None
311 pos: self.parent.width - 3 * self.width / 2 - 2 * (self.parent.parent.border or 0), self.y
312 size: self.texture_size[0], self.parent.height
315 size_hint: None, None
322 rgba: 250./255, 250./255, 250./255, 1
325 size: self.width, self.height
327 rgba: self.ready_color
329 pos: self.width - self.key_size / 2, self.height - self.key_size /2
330 size: self.key_size / 3, self.key_size / 3
332 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
333 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
335 text: "volume: {}%".format(self.parent.master_volume)
337 size_hint: None, None
338 size: self.texture_size[0], self.texture_size[1]
339 x: self.parent.width - self.width - 2 * self.parent.key_size / 3
340 center_y: self.parent.height - self.height