diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-27 19:32:38 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-27 19:44:09 +0200 |
commit | 35bde798b6cda13579337b0ec5a803fdd5eab19a (patch) | |
tree | f0cc63dfb2b64aafbd6477b4d239899b8c9dba3c /music_sampler.kv | |
parent | cfde9820184a3b70c70bcf396c396a4c64fa9a39 (diff) | |
download | MusicSampler-35bde798b6cda13579337b0ec5a803fdd5eab19a.tar.gz MusicSampler-35bde798b6cda13579337b0ec5a803fdd5eab19a.tar.zst MusicSampler-35bde798b6cda13579337b0ec5a803fdd5eab19a.zip |
Remove fonts from directory
Diffstat (limited to 'music_sampler.kv')
-rw-r--r-- | music_sampler.kv | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/music_sampler.kv b/music_sampler.kv index fa38627..a18eb4e 100644 --- a/music_sampler.kv +++ b/music_sampler.kv | |||
@@ -40,7 +40,8 @@ | |||
40 | width: self.line_width | 40 | width: self.line_width |
41 | Label: | 41 | Label: |
42 | id: key_label | 42 | id: key_label |
43 | font_name: h.path() + "fonts/Ubuntu-B.ttf" | 43 | font_name: "Ubuntu" |
44 | bold: True | ||
44 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size)) | 45 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size)) |
45 | color: 0, 0, 0, 1 | 46 | color: 0, 0, 0, 1 |
46 | text: self.parent.key_sym | 47 | text: self.parent.key_sym |
@@ -52,7 +53,7 @@ | |||
52 | center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5 | 53 | center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5 |
53 | Label: | 54 | Label: |
54 | id: key_description_title | 55 | id: key_description_title |
55 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 56 | font_name: "Ubuntu" |
56 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2)) | 57 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2)) |
57 | color: 0, 0, 0, 1 | 58 | color: 0, 0, 0, 1 |
58 | text: self.parent.description_title | 59 | text: self.parent.description_title |
@@ -63,7 +64,7 @@ | |||
63 | center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5 | 64 | center_y: self.parent.y + self.parent.height - self.texture_size[1] /2 - 5 |
64 | Label: | 65 | Label: |
65 | id: key_description | 66 | id: key_description |
66 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 67 | font_name: "Ubuntu" |
67 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2)) | 68 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size / 2)) |
68 | color: 0, 0, 0, 1 | 69 | color: 0, 0, 0, 1 |
69 | text: "\n".join(self.parent.description) | 70 | text: "\n".join(self.parent.description) |
@@ -114,7 +115,7 @@ | |||
114 | ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1) | 115 | ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1) |
115 | Label: | 116 | Label: |
116 | id: mock_symbola | 117 | id: mock_symbola |
117 | font_name: h.path() + "fonts/Symbola.ttf" | 118 | font_name: "Symbola" |
118 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | 119 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) |
119 | color: 0, 0, 0, 0 | 120 | color: 0, 0, 0, 0 |
120 | text: "A" | 121 | text: "A" |
@@ -123,7 +124,7 @@ | |||
123 | size: self.texture_size | 124 | size: self.texture_size |
124 | Label: | 125 | Label: |
125 | id: mock_ubuntu_regular | 126 | id: mock_ubuntu_regular |
126 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 127 | font_name: "Ubuntu" |
127 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | 128 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) |
128 | color: 0, 0, 0, 0 | 129 | color: 0, 0, 0, 0 |
129 | text: "A" | 130 | text: "A" |
@@ -132,7 +133,8 @@ | |||
132 | size: self.texture_size | 133 | size: self.texture_size |
133 | Label: | 134 | Label: |
134 | id: mock_ubuntu_bold | 135 | id: mock_ubuntu_bold |
135 | font_name: h.path() + "fonts/Ubuntu-B.ttf" | 136 | font_name: "Ubuntu" |
137 | bold: True | ||
136 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | 138 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) |
137 | color: 0, 0, 0, 0 | 139 | color: 0, 0, 0, 0 |
138 | text: "A" | 140 | text: "A" |
@@ -172,7 +174,8 @@ | |||
172 | size: self.width, self.height | 174 | size: self.width, self.height |
173 | Label: | 175 | Label: |
174 | id: key_list_first | 176 | id: key_list_first |
175 | font_name: h.path() + "fonts/Ubuntu-B.ttf" | 177 | font_name: "Ubuntu" |
178 | bold: True | ||
176 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 179 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
177 | color: 0, 0, 0, 1 | 180 | color: 0, 0, 0, 1 |
178 | text: self.parent.first_key | 181 | text: self.parent.first_key |
@@ -184,7 +187,7 @@ | |||
184 | pos: 0, self.parent.height - self.height | 187 | pos: 0, self.parent.height - self.height |
185 | Label: | 188 | Label: |
186 | id: key_list_second | 189 | id: key_list_second |
187 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 190 | font_name: "Ubuntu" |
188 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 191 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
189 | color: 0, 0, 0, 1 | 192 | color: 0, 0, 0, 1 |
190 | text: self.parent.second_key | 193 | text: self.parent.second_key |
@@ -196,7 +199,7 @@ | |||
196 | pos: 0, self.parent.height - key_list_first.height - self.height | 199 | pos: 0, self.parent.height - key_list_first.height - self.height |
197 | Label: | 200 | Label: |
198 | id: key_list_third | 201 | id: key_list_third |
199 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 202 | font_name: "Ubuntu" |
200 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 203 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
201 | color: 0, 0, 0, 0.75 | 204 | color: 0, 0, 0, 0.75 |
202 | text: self.parent.third_key | 205 | text: self.parent.third_key |
@@ -208,7 +211,7 @@ | |||
208 | pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height | 211 | pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height |
209 | Label: | 212 | Label: |
210 | id: key_list_rest | 213 | id: key_list_rest |
211 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 214 | font_name: "Ubuntu" |
212 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 215 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
213 | color: 0, 0, 0, 0.5 | 216 | color: 0, 0, 0, 0.5 |
214 | text: "\n".join(self.parent.keylist[3:]) | 217 | text: "\n".join(self.parent.keylist[3:]) |
@@ -230,7 +233,8 @@ | |||
230 | 233 | ||
231 | Label: | 234 | Label: |
232 | id: action_list_title | 235 | id: action_list_title |
233 | font_name: h.path() + "fonts/Ubuntu-B.ttf" | 236 | font_name: "Ubuntu" |
237 | bold: True | ||
234 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 238 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
235 | color: 0, 0, 0, 1 | 239 | color: 0, 0, 0, 1 |
236 | text: self.parent.action_title | 240 | text: self.parent.action_title |
@@ -241,7 +245,7 @@ | |||
241 | size: self.texture_size[0], self.parent.height | 245 | size: self.texture_size[0], self.parent.height |
242 | Label: | 246 | Label: |
243 | id: action_list_icons | 247 | id: action_list_icons |
244 | font_name: h.path() + "fonts/Symbola.ttf" | 248 | font_name: "Symbola" |
245 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 249 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
246 | line_height: self.parent.parent.symbola_line_height or 1 | 250 | line_height: self.parent.parent.symbola_line_height or 1 |
247 | color: 0, 0, 0, 1 | 251 | color: 0, 0, 0, 1 |
@@ -253,7 +257,7 @@ | |||
253 | size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size | 257 | size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size |
254 | Label: | 258 | Label: |
255 | id: action_list_names | 259 | id: action_list_names |
256 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 260 | font_name: "Ubuntu" |
257 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 261 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
258 | line_height: self.parent.parent.ubuntu_regular_line_height or 1 | 262 | line_height: self.parent.parent.ubuntu_regular_line_height or 1 |
259 | color: 0, 0, 0, 1 | 263 | color: 0, 0, 0, 1 |
@@ -276,7 +280,7 @@ | |||
276 | 280 | ||
277 | Label: | 281 | Label: |
278 | id: playlist_icons | 282 | id: playlist_icons |
279 | font_name: h.path() + "fonts/Symbola.ttf" | 283 | font_name: "Symbola" |
280 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 284 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
281 | line_height: self.parent.parent.symbola_line_height or 1 | 285 | line_height: self.parent.parent.symbola_line_height or 1 |
282 | color: 0, 0, 0, 1 | 286 | color: 0, 0, 0, 1 |
@@ -288,7 +292,7 @@ | |||
288 | size: self.texture_size[0], self.parent.height | 292 | size: self.texture_size[0], self.parent.height |
289 | Label: | 293 | Label: |
290 | id: playlist_names | 294 | id: playlist_names |
291 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" # FIXME: Mettre en gras quand c'est en cours | 295 | font_name: "Ubuntu" # FIXME: Mettre en gras quand c'est en cours |
292 | line_height: self.parent.parent.ubuntu_regular_line_height or 1 | 296 | line_height: self.parent.parent.ubuntu_regular_line_height or 1 |
293 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 297 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
294 | color: 0, 0, 0, 1 | 298 | color: 0, 0, 0, 1 |
@@ -307,7 +311,7 @@ | |||
307 | pos: self.pos | 311 | pos: self.pos |
308 | size: self.width, self.height | 312 | size: self.width, self.height |
309 | id: playlist_times | 313 | id: playlist_times |
310 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 314 | font_name: "Ubuntu" |
311 | line_height: self.parent.parent.ubuntu_regular_line_height or 1 | 315 | line_height: self.parent.parent.ubuntu_regular_line_height or 1 |
312 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) | 316 | font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) |
313 | color: 0, 0, 0, 1 | 317 | color: 0, 0, 0, 1 |
@@ -337,7 +341,7 @@ | |||
337 | pos: self.width - self.key_size / 2, self.height - self.key_size /2 | 341 | pos: self.width - self.key_size / 2, self.height - self.key_size /2 |
338 | size: self.key_size / 3, self.key_size / 3 | 342 | size: self.key_size / 3, self.key_size / 3 |
339 | Label: | 343 | Label: |
340 | font_name: h.path() + "fonts/Ubuntu-Regular.ttf" | 344 | font_name: "Ubuntu" |
341 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | 345 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) |
342 | color: 0, 0, 0, 1 | 346 | color: 0, 0, 0, 1 |
343 | text: "volume: {}%".format(self.parent.master_volume) | 347 | text: "volume: {}%".format(self.parent.master_volume) |