4 pad_col_sep: 0 if not self.pad_cols else self.parent.pad_x
7 y: (self.parent.top-self.parent.y) - (self.row) * self.parent.key_size - (self.row - 1) * self.parent.key_sep
8 x: (self.col - 1) * self.parent.key_size + int(self.col - 1) * self.parent.key_sep + self.pad_col_sep
18 width: self.key_width * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
19 height: self.key_height * (self.parent.key_size + self.parent.key_sep) - self.parent.key_sep
20 normal_font_size: self.parent.font_size
21 smaller_font_size: math.ceil(2 * math.sqrt(self.parent.key_size / 2))
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
35 rgba: self.line_cross_color
37 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
38 width: self.line_width
40 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
41 width: self.line_width
46 font_size: self.parent.normal_font_size or 10
48 text: self.parent.key_sym
49 text_size: self.parent.width,self.font_size
53 center_x: self.parent.x + self.texture_size[0] /2 + 5
54 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
56 id: key_description_title
58 font_size: self.parent.smaller_font_size or 8
60 text: self.parent.description_title
61 text_size: self.parent.width - 2*self.parent.line_width, self.font_size
64 center_x: self.parent.x + self.texture_size[0] /2
65 center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5
69 font_size: self.parent.smaller_font_size or 8
71 text: "\n".join(self.parent.description)
72 text_size: 2 * self.parent.width,self.parent.height - key_label.font_size
75 pos: self.parent.x + 2 * self.parent.line_width + 2, self.parent.y
77 size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size
85 size: self.width, self.height
91 font_size: self.parent and 2 * self.parent.key_size or 42
93 text: _("Focus lost!")
98 rgba: 229/255, 228/255, 226/255, 1
101 size: self.width, self.height
103 key_size: int( (3 * self.width - 16) / 56)
104 key_sep: int( self.key_size / 24)
105 key_pad_sep: int( self.key_size / 7) + 1
107 border: (self.width - self.key_size * 18 - self.key_sep * 16 - self.key_pad_sep)/ 2
109 mapping_height: self.key_size * 6 + self.key_sep * 5
110 mapping_width: self.key_size * 18 + self.key_sep * 16 + self.key_pad_sep
111 mapping_x: self.border
112 mapping_y: self.top - self.mapping_height - self.border
114 key_list_width: 4 * (mock_ubuntu_regular.width or 0)
115 key_list_height: self.height - self.mapping_height - 3 * self.border
116 key_list_x: (self.action_list_width or 0) + 2 * self.border
117 key_list_y: self.border
119 action_list_height: self.height - self.mapping_height - 3 * self.border
120 action_list_width: 3 * self.width / 4 - self.key_list_width - self.border
121 action_list_x: self.border
122 action_list_y: self.border
124 play_list_height: self.action_list_height
125 play_list_width: self.width - self.key_list_width - self.action_list_width - 4* self.border
126 play_list_y: self.border
127 play_list_x: self.action_list_width + self.key_list_width + 3 * self.border
129 font_size: math.ceil(2 * math.sqrt(self.key_size or 10))
130 max_height: 1.3 * self.font_size
133 id: mock_ubuntu_regular
135 font_size: self.parent.font_size
138 text_size: None, None
139 size_hint: None, None
140 size: self.texture_size
144 pos: self.parent.mapping_x, self.parent.mapping_y
145 size: self.parent.mapping_width, self.parent.mapping_height
147 key_size: self.parent.key_size
148 key_sep: self.parent.key_sep
149 key_pad_sep: self.parent.key_pad_sep
150 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
153 pos: self.parent.action_list_x, self.parent.action_list_y
154 size: self.parent.action_list_width, self.parent.action_list_height
157 pos: self.parent.key_list_x, self.parent.key_list_y
158 size: self.parent.key_list_width, self.parent.key_list_height
161 pos: self.parent.play_list_x, self.parent.play_list_y
162 size: self.parent.play_list_width, self.parent.play_list_height
165 font_size: self.parent.font_size or 10
166 size_hint: None, None
169 rgba: 250./255, 250./255, 250./255, 1
172 size: self.width, self.height
177 font_size: self.parent.font_size
179 text: self.parent.first_key
180 text_size: None, None
183 size_hint: None, None
184 size: self.parent.width, self.texture_size[1]
185 pos: 0, self.parent.height - self.height
189 font_size: self.parent.font_size
191 text: self.parent.second_key
192 text_size: None, None
195 size_hint: None, None
196 size: self.parent.width, self.texture_size[1]
197 pos: 0, self.parent.height - key_list_first.height - self.height
201 font_size: self.parent.font_size
203 text: self.parent.third_key
204 text_size: None, None
207 size_hint: None, None
208 size: self.parent.width, self.texture_size[1]
209 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height
213 font_size: self.parent.font_size
215 text: "\n".join(self.parent.keylist[3:])
216 text_size: None, None
219 size_hint: None, None
220 size: self.parent.width, self.texture_size[1]
221 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height
224 size_hint: None, None
225 labels_height: self.parent.max_height or 1
226 font_size: self.parent.font_size or 10
229 rgba: 250./255, 250./255, 250./255, 1
232 size: self.width, self.height
234 id: action_list_title
237 font_size: self.parent.font_size
239 text: self.parent.action_title
240 text_size: None, self.parent.height
243 size_hint: None, None
244 size: self.texture_size[0], self.parent.height
246 font_size: self.parent.font_size
247 labels_height: self.parent.labels_height
250 pos_hint: { 'x': 0, 'top': 0.9 }
251 ActionListDescriptions:
252 font_size: self.parent.font_size
253 labels_height: self.parent.labels_height
256 pos_hint: { 'x': 0.02, 'top': 0.9 }
259 font_size: self.parent and self.parent.font_size or 10
260 height: self.parent and self.parent.labels_height or 0
263 text_size: None, None
265 size_hint: None, None
266 width: self.texture_size[0]
268 <ActionListDescription>:
269 font_size: self.parent and self.parent.font_size or 10
270 height: self.parent and self.parent.labels_height or 0
273 text_size: self.width, None
275 shorten_from: "right"
281 size_hint: None, None
282 labels_height: self.parent.max_height or 1
283 font_size: self.parent.font_size or 10
286 rgba: 250./255, 250./255, 250./255, 1
289 size: self.width, self.height
291 font_size: self.parent.font_size
292 labels_height: self.parent.labels_height
295 pos_hints: { 'x': 0, 'top': 0 }
297 font_size: self.parent.font_size
298 labels_height: self.parent.labels_height
300 pos_hint: { 'x': 0.05, 'bottom': 0 }
303 font_size: self.parent.font_size
304 labels_height: self.parent.labels_height
306 pos_hint: { 'x': 0.7, 'bottom': 0 }
310 font_size: self.parent and self.parent.font_size or 10
311 height: self.parent and self.parent.labels_height or 0
314 text_size: None, None
316 size_hint: None, None
317 width: self.texture_size[0]
320 font_size: self.parent and self.parent.font_size or 10
321 height: self.parent and self.parent.labels_height or 0
324 text_size: self.width, None
326 shorten_from: "right"
332 font_size: self.parent and self.parent.font_size or 10
333 height: self.parent and self.parent.labels_height or 0
336 rgba: 250./255, 250./255, 250./255, 1
339 size: self.width, self.height
342 text_size: None, None
344 size_hint: None, None
345 width: self.texture_size[0]
348 size_hint: None, None
350 font_size: self.parent.font_size
356 rgba: 250./255, 250./255, 250./255, 1
359 size: self.width, self.height
361 rgba: self.ready_color
363 pos: self.width - self.key_size / 2, self.height - self.key_size /2
364 size: self.key_size / 3, self.key_size / 3
367 font_size: self.parent.font_size or 10
369 text: _("volume: {}%").format(self.parent.master_volume)
371 size_hint: None, None
372 size: self.texture_size[0], self.texture_size[1]
373 x: self.parent.width - self.width - 2 * self.parent.key_size / 3
374 center_y: self.parent.height - self.height