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
11 line_color: 120/255, 120/255, 120/255, 1
20 width: self.key_width * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
21 height: self.key_height * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
32 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
33 width: self.line_width
36 font_name: h.path() + "fonts/Ubuntu-B.ttf"
37 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size))
39 text: self.parent.key_sym
40 text_size: self.parent.width,self.font_size
44 center_x: self.parent.x + self.texture_size[0] /2 + 5
45 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
47 id: key_description_title
48 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
49 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
51 text: self.parent.description_title
52 text_size: self.parent.width - 2*self.parent.line_width, self.font_size
55 center_x: self.parent.x + self.texture_size[0] /2
56 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
59 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
60 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2))
62 text: "\n".join(self.parent.description)
63 text_size: 2 * self.parent.width,self.parent.height - key_label.font_size
66 pos: self.parent.x + 2 * self.parent.line_width + 2, self.parent.y
68 size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size
73 rgba: 229/255, 228/255, 226/255, 1
76 size: self.width, self.height
78 key_size: int( (3 * self.width - 16) / 56)
79 key_sep: int( self.key_size / 24)
80 key_pad_sep: int( self.key_size / 7) + 1
82 border: (self.width - self.key_size * 18 - self.key_sep * 16 - self.key_pad_sep)/ 2
84 mapping_height: self.key_size * 6 + self.key_sep * 5
85 mapping_width: self.key_size * 18 + self.key_sep * 16 + self.key_pad_sep
86 mapping_x: self.border
87 mapping_y: self.top - self.mapping_height - self.border
89 key_list_width: 4 * (mock_ubuntu_regular.width or 0)
90 key_list_height: self.height - self.mapping_height - 3 * self.border
91 key_list_x: (self.action_list_width or 0) + 2 * self.border
92 key_list_y: self.border
94 action_list_height: self.height - self.mapping_height - 3 * self.border
95 action_list_width: 3 * self.width / 4 - self.key_list_width - self.border
96 action_list_x: self.border
97 action_list_y: self.border
99 play_list_height: self.action_list_height
100 play_list_width: self.width - self.action_list_width - 3* self.border
101 play_list_y: self.border
102 play_list_x: self.action_list_width + self.key_list_width + 3 * self.border
104 min_height: min(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height)
105 symbola_line_height: self.min_height / max(mock_symbola.height,1)
106 ubuntu_regular_line_height: self.min_height / max(mock_ubuntu_regular.height,1)
107 ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1)
110 font_name: h.path() + "fonts/Symbola.ttf"
111 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
114 text_size: None, None
115 size_hint: None, None
116 size: self.texture_size
118 id: mock_ubuntu_regular
119 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
120 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
123 text_size: None, None
124 size_hint: None, None
125 size: self.texture_size
128 font_name: h.path() + "fonts/Ubuntu-B.ttf"
129 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
132 text_size: None, None
133 size_hint: None, None
134 size: self.texture_size
138 pos: self.parent.mapping_x, self.parent.mapping_y
139 size: self.parent.mapping_width, self.parent.mapping_height
141 key_size: self.parent.key_size
142 key_sep: self.parent.key_sep
143 key_pad_sep: self.parent.key_pad_sep
144 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
147 pos: self.parent.action_list_x, self.parent.action_list_y
148 size: self.parent.action_list_width, self.parent.action_list_height
151 pos: self.parent.key_list_x, self.parent.key_list_y
152 size: self.parent.key_list_width, self.parent.key_list_height
155 pos: self.parent.play_list_x, self.parent.play_list_y
156 size: self.parent.play_list_width, self.parent.play_list_height
159 size_hint: None, None
162 rgba: 250./255, 250./255, 250./255, 1
165 size: self.width, self.height
168 font_name: h.path() + "fonts/Ubuntu-B.ttf"
169 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
171 text: self.parent.first_key
172 text_size: None, None
175 size_hint: None, None
176 size: self.parent.width, self.texture_size[1]
177 pos: 0, self.parent.height - self.height
180 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
181 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
183 text: self.parent.second_key
184 text_size: None, None
187 size_hint: None, None
188 size: self.parent.width, self.texture_size[1]
189 pos: 0, self.parent.height - key_list_first.height - self.height
192 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
193 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
195 text: self.parent.third_key
196 text_size: None, None
199 size_hint: None, None
200 size: self.parent.width, self.texture_size[1]
201 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height
204 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
205 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
207 text: "\n".join(self.parent.keylist[3:])
208 text_size: None, None
211 size_hint: None, None
212 size: self.parent.width, self.texture_size[1]
213 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height
216 size_hint: None, None
219 rgba: 250./255, 250./255, 250./255, 1
222 size: self.width, self.height
225 id: action_list_title
226 font_name: h.path() + "fonts/Ubuntu-B.ttf"
227 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
229 text: self.parent.action_title
230 text_size: None, self.parent.height
233 size_hint: None, None
234 size: self.texture_size[0], self.parent.height
236 id: action_list_icons
237 font_name: h.path() + "fonts/Symbola.ttf"
238 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
239 line_height: self.parent.parent.symbola_line_height or 1
241 text: "\n".join(map(lambda x: x[0], self.parent.action_list))
242 text_size: None, self.parent.height
245 size_hint: None, None
246 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
248 id: action_list_names
249 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
250 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
251 line_height: self.parent.parent.ubuntu_regular_line_height or 1
253 text: "\n".join(map(lambda x: x[1], self.parent.action_list))
254 text_size: None, self.parent.height
257 size_hint: None, None
259 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
262 size_hint: None, None
265 rgba: 250./255, 250./255, 250./255, 1
268 size: self.width, self.height
272 font_name: h.path() + "fonts/Symbola.ttf"
273 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
274 line_height: self.parent.parent.symbola_line_height or 1
276 text: "\n".join(map(lambda x: x[0], self.parent.playlist))
277 text_size: None, self.parent.height
280 size_hint: None, None
281 size: self.texture_size[0], self.parent.height
284 font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours
285 line_height: self.parent.parent.ubuntu_regular_line_height or 1
286 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
288 text: "\n".join(map(lambda x: x[1], self.parent.playlist))
289 text_size: None, self.parent.height
292 size_hint: None, None
294 size: self.texture_size[0], self.parent.height
298 rgba: 250./255, 250./255, 250./255, 1
301 size: self.width, self.height
303 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
304 line_height: self.parent.parent.ubuntu_regular_line_height or 1
305 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
307 text: "\n".join(map(lambda x: x[2], self.parent.playlist))
308 text_size: None, self.parent.height
311 size_hint: None, None
312 pos: self.parent.width - 3 * self.width / 2 - 2 * (self.parent.parent.border or 0), self.y
313 size: self.texture_size[0], self.parent.height
316 size_hint: None, None
323 rgba: 250./255, 250./255, 250./255, 1
326 size: self.width, self.height
328 rgba: self.ready_color
330 pos: self.width - self.key_size / 2, self.height - self.key_size /2
331 size: self.key_size / 3, self.key_size / 3