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
99 pos: self.parent.mapping_x, self.parent.mapping_y
100 size: self.parent.mapping_width, self.parent.mapping_height
102 key_size: self.parent.key_size
103 key_sep: self.parent.key_sep
104 key_pad_sep: self.parent.key_pad_sep
105 pad_x: self.key_size * 15 + 14 * self.key_sep + self.key_pad_sep
108 pos: self.parent.action_list_x, self.parent.action_list_y
109 size: self.parent.action_list_width, self.parent.action_list_height
112 pos: self.parent.play_list_x, self.parent.play_list_y
113 size: self.parent.play_list_width, self.parent.play_list_height
116 min_height: min(action_list_mock_symbola.height, action_list_mock_ubuntu_regular.height, action_list_mock_ubuntu_bold.height)
117 size_hint: None, None
120 rgba: 250./255, 250./255, 250./255, 1
123 size: self.width, self.height
124 # FIXME: déplacer ça dans Screen?
126 id: action_list_mock_symbola
127 font_name: h.path() + "fonts/Symbola.ttf"
128 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
131 text_size: None, None
132 size_hint: None, None
133 size: self.texture_size
135 id: action_list_mock_ubuntu_regular
136 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
137 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
140 text_size: None, None
141 size_hint: None, None
142 size: self.texture_size
144 id: action_list_mock_ubuntu_bold
145 font_name: h.path() + "fonts/Ubuntu-B.ttf"
146 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
149 text_size: None, None
150 size_hint: None, None
151 size: self.texture_size
155 id: action_list_title
156 font_name: h.path() + "fonts/Ubuntu-B.ttf"
157 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
159 text: self.parent.action_title
160 text_size: None, self.parent.height
163 size_hint: None, None
164 size: self.texture_size[0], self.parent.height
166 id: action_list_icons
167 font_name: h.path() + "fonts/Symbola.ttf"
168 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
169 line_height: self.parent.min_height / max(action_list_mock_symbola.height,1)
171 text: "\n".join(map(lambda x: x[0], self.parent.action_list))
172 text_size: None, self.parent.height
175 size_hint: None, None
176 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
178 id: action_list_names
179 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
180 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
181 line_height: self.parent.min_height / max(action_list_mock_ubuntu_regular.height,1)
183 text: "\n".join(map(lambda x: x[1], self.parent.action_list))
184 text_size: None, self.parent.height
187 size_hint: None, None
189 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
192 min_height: min(playlist_mock_symbola.height, playlist_mock_ubuntu_regular.height, playlist_mock_ubuntu_bold.height)
193 size_hint: None, None
196 rgba: 250./255, 250./255, 250./255, 1
199 size: self.width, self.height
201 id: playlist_mock_symbola
202 font_name: h.path() + "fonts/Symbola.ttf"
203 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
206 text_size: None, None
207 size_hint: None, None
208 size: self.texture_size
210 id: playlist_mock_ubuntu_regular
211 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
212 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
215 text_size: None, None
216 size_hint: None, None
217 size: self.texture_size
219 id: playlist_mock_ubuntu_bold
220 font_name: h.path() + "fonts/Ubuntu-B.ttf"
221 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
224 text_size: None, None
225 size_hint: None, None
226 size: self.texture_size
231 font_name: h.path() + "fonts/Symbola.ttf"
232 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
233 line_height: self.parent.min_height / max(playlist_mock_symbola.height,1)
235 text: "\n".join(map(lambda x: x[0], self.parent.playlist))
236 text_size: None, self.parent.height
239 size_hint: None, None
240 size: self.texture_size[0], self.parent.height
243 font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours
244 line_height: self.parent.min_height / max(playlist_mock_ubuntu_regular.height,1)
245 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
247 text: "\n".join(map(lambda x: x[1], self.parent.playlist))
248 text_size: None, self.parent.height
251 size_hint: None, None
253 size: self.texture_size[0], self.parent.height
256 size_hint: None, None
263 rgba: 250./255, 250./255, 250./255, 1
266 size: self.width, self.height