X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.kv;h=87c6e9338be910d4850668448dfce90880447f6f;hb=98ff43054fe94f333e2deda2906cd62593ded1d8;hp=d21c5fbafba0d37d9c77599b40a85a8bd7c80a4c;hpb=65ec4d2a87bfe0dcf1250ec8dc61225d4ed66325;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git 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 @@ text: self.parent.first_key text_size: None, None valign: "top" + halign: "center" size_hint: None, None size: self.parent.width, self.texture_size[1] pos: 0, self.parent.height - self.height @@ -182,6 +183,7 @@ text: self.parent.second_key text_size: None, None valign: "top" + halign: "center" size_hint: None, None size: self.parent.width, self.texture_size[1] pos: 0, self.parent.height - key_list_first.height - self.height @@ -193,6 +195,7 @@ text: self.parent.third_key text_size: None, None valign: "top" + halign: "center" size_hint: None, None size: self.parent.width, self.texture_size[1] pos: 0, self.parent.height - key_list_first.height - key_list_second.height - self.height @@ -204,6 +207,7 @@ text: "\n".join(self.parent.keylist[3:]) text_size: None, None valign: "top" + halign: "center" size_hint: None, None size: self.parent.width, self.texture_size[1] pos: 0, self.parent.height - key_list_first.height - key_list_second.height - key_list_third.height - self.height @@ -288,6 +292,19 @@ size_hint: None, None pos: 15, self.y size: self.texture_size[0], self.parent.height + Label: + id: playlist_times + font_name: h.path() + "fonts/Ubuntu-Regular.ttf" + line_height: self.parent.parent.ubuntu_regular_line_height or 1 + font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) + color: 0, 0, 0, 1 + text: "\n".join(map(lambda x: x[2], self.parent.playlist)) + text_size: None, self.parent.height + halign: "left" + valign: "top" + size_hint: None, None + pos: self.parent.width - 3 * self.width / 2 - 2 * (self.parent.parent.border or 0), self.y + size: self.texture_size[0], self.parent.height : size_hint: None, None