X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.kv;h=3232956a72041bd0e733ad101bbd0cb0152658df;hb=571d767ab587c5090bc44d2d28ad206dd1327526;hp=87c6e9338be910d4850668448dfce90880447f6f;hpb=98ff43054fe94f333e2deda2906cd62593ded1d8;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler.kv b/music_sampler.kv index 87c6e93..3232956 100644 --- a/music_sampler.kv +++ b/music_sampler.kv @@ -293,6 +293,12 @@ pos: 15, self.y size: self.texture_size[0], self.parent.height Label: + canvas.before: + Color: + rgba: 250./255, 250./255, 250./255, 1 + Rectangle: + pos: self.pos + size: self.width, self.height id: playlist_times font_name: h.path() + "fonts/Ubuntu-Regular.ttf" line_height: self.parent.parent.ubuntu_regular_line_height or 1 @@ -318,6 +324,21 @@ Rectangle: pos: 0, 0 size: self.width, self.height + Color: + rgba: self.ready_color + Ellipse: + pos: self.width - self.key_size / 2, self.height - self.key_size /2 + size: self.key_size / 3, self.key_size / 3 + Label: + font_name: h.path() + "fonts/Ubuntu-Regular.ttf" + font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) + color: 0, 0, 0, 1 + text: "volume: {}%".format(self.parent.master_volume) + valign: "top" + size_hint: None, None + size: self.texture_size[0], self.texture_size[1] + x: self.parent.width - self.width - 2 * self.parent.key_size / 3 + center_y: self.parent.height - self.height Key: id: Key_27 key_code: 27