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
88 action_list_height: self.height - self.mapping_height - 3 * self.border
89 action_list_width: 3 * self.width / 4
90 action_list_x: self.border
91 action_list_y: self.border
92 play_list_height: self.action_list_height
93 play_list_width: self.width - self.action_list_width - 3* self.border
94 play_list_y: self.border
95 play_list_x: self.action_list_width + 2 * self.border
97 min_height: min(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height)
98 symbola_line_height: self.min_height / max(mock_symbola.height,1)
99 ubuntu_regular_line_height: self.min_height / max(mock_ubuntu_regular.height,1)
100 ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1)
103 font_name: h.path() + "fonts/Symbola.ttf"
104 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
107 text_size: None, None
108 size_hint: None, None
109 size: self.texture_size
111 id: mock_ubuntu_regular
112 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
113 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
116 text_size: None, None
117 size_hint: None, None
118 size: self.texture_size
121 font_name: h.path() + "fonts/Ubuntu-B.ttf"
122 font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
125 text_size: None, None
126 size_hint: None, None
127 size: self.texture_size
131 pos: self.parent.mapping_x, self.parent.mapping_y
132 size: self.parent.mapping_width, self.parent.mapping_height
134 key_size: self.parent.key_size
135 key_sep: self.parent.key_sep
136 key_pad_sep: self.parent.key_pad_sep
137 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
140 pos: self.parent.action_list_x, self.parent.action_list_y
141 size: self.parent.action_list_width, self.parent.action_list_height
144 pos: self.parent.play_list_x, self.parent.play_list_y
145 size: self.parent.play_list_width, self.parent.play_list_height
148 size_hint: None, None
151 rgba: 250./255, 250./255, 250./255, 1
154 size: self.width, self.height
157 id: action_list_title
158 font_name: h.path() + "fonts/Ubuntu-B.ttf"
159 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
161 text: self.parent.action_title
162 text_size: None, self.parent.height
165 size_hint: None, None
166 size: self.texture_size[0], self.parent.height
168 id: action_list_icons
169 font_name: h.path() + "fonts/Symbola.ttf"
170 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
171 line_height: self.parent.parent.symbola_line_height or 1
173 text: "\n".join(map(lambda x: x[0], self.parent.action_list))
174 text_size: None, self.parent.height
177 size_hint: None, None
178 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
180 id: action_list_names
181 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
182 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
183 line_height: self.parent.parent.ubuntu_regular_line_height or 1
185 text: "\n".join(map(lambda x: x[1], self.parent.action_list))
186 text_size: None, self.parent.height
189 size_hint: None, None
191 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
194 size_hint: None, None
197 rgba: 250./255, 250./255, 250./255, 1
200 size: self.width, self.height
204 font_name: h.path() + "fonts/Symbola.ttf"
205 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
206 line_height: self.parent.parent.symbola_line_height or 1
208 text: "\n".join(map(lambda x: x[0], self.parent.playlist))
209 text_size: None, self.parent.height
212 size_hint: None, None
213 size: self.texture_size[0], self.parent.height
216 font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours
217 line_height: self.parent.parent.ubuntu_regular_line_height or 1
218 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
220 text: "\n".join(map(lambda x: x[1], self.parent.playlist))
221 text_size: None, self.parent.height
224 size_hint: None, None
226 size: self.texture_size[0], self.parent.height
229 size_hint: None, None
236 rgba: 250./255, 250./255, 250./255, 1
239 size: self.width, self.height