aboutsummaryrefslogtreecommitdiff
path: root/music_sampler.kv
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-27 10:27:35 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-06-27 10:27:35 +0200
commit98ff43054fe94f333e2deda2906cd62593ded1d8 (patch)
treee8cfe3df72c6a02bd1d8fbe565b1a8b9185c79b2 /music_sampler.kv
parent65ec4d2a87bfe0dcf1250ec8dc61225d4ed66325 (diff)
downloadMusicSampler-98ff43054fe94f333e2deda2906cd62593ded1d8.tar.gz
MusicSampler-98ff43054fe94f333e2deda2906cd62593ded1d8.tar.zst
MusicSampler-98ff43054fe94f333e2deda2906cd62593ded1d8.zip
Put time duration in playlist
Diffstat (limited to 'music_sampler.kv')
-rw-r--r--music_sampler.kv17
1 files changed, 17 insertions, 0 deletions
diff --git a/music_sampler.kv b/music_sampler.kv
index d21c5fb..87c6e93 100644
--- a/music_sampler.kv
+++ b/music_sampler.kv
@@ -171,6 +171,7 @@
171 text: self.parent.first_key 171 text: self.parent.first_key
172 text_size: None, None 172 text_size: None, None
173 valign: "top" 173 valign: "top"
174 halign: "center"
174 size_hint: None, None 175 size_hint: None, None
175 size: self.parent.width, self.texture_size[1] 176 size: self.parent.width, self.texture_size[1]
176 pos: 0, self.parent.height - self.height 177 pos: 0, self.parent.height - self.height
@@ -182,6 +183,7 @@
182 text: self.parent.second_key 183 text: self.parent.second_key
183 text_size: None, None 184 text_size: None, None
184 valign: "top" 185 valign: "top"
186 halign: "center"
185 size_hint: None, None 187 size_hint: None, None
186 size: self.parent.width, self.texture_size[1] 188 size: self.parent.width, self.texture_size[1]
187 pos: 0, self.parent.height - key_list_first.height - self.height 189 pos: 0, self.parent.height - key_list_first.height - self.height
@@ -193,6 +195,7 @@
193 text: self.parent.third_key 195 text: self.parent.third_key
194 text_size: None, None 196 text_size: None, None
195 valign: "top" 197 valign: "top"
198 halign: "center"
196 size_hint: None, None 199 size_hint: None, None
197 size: self.parent.width, self.texture_size[1] 200 size: self.parent.width, self.texture_size[1]
198 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height 201 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height
@@ -204,6 +207,7 @@
204 text: "\n".join(self.parent.keylist[3:]) 207 text: "\n".join(self.parent.keylist[3:])
205 text_size: None, None 208 text_size: None, None
206 valign: "top" 209 valign: "top"
210 halign: "center"
207 size_hint: None, None 211 size_hint: None, None
208 size: self.parent.width, self.texture_size[1] 212 size: self.parent.width, self.texture_size[1]
209 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height 213 pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height
@@ -288,6 +292,19 @@
288 size_hint: None, None 292 size_hint: None, None
289 pos: 15, self.y 293 pos: 15, self.y
290 size: self.texture_size[0], self.parent.height 294 size: self.texture_size[0], self.parent.height
295 Label:
296 id: playlist_times
297 font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
298 line_height: self.parent.parent.ubuntu_regular_line_height or 1
299 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
300 color: 0, 0, 0, 1
301 text: "\n".join(map(lambda x: x[2], self.parent.playlist))
302 text_size: None, self.parent.height
303 halign: "left"
304 valign: "top"
305 size_hint: None, None
306 pos: self.parent.width - 3 * self.width / 2 - 2 * (self.parent.parent.border or 0), self.y
307 size: self.texture_size[0], self.parent.height
291 308
292<Mapping>: 309<Mapping>:
293 size_hint: None, None 310 size_hint: None, None