X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler%2Fmusic_sampler.kv;h=0432e1458aac09f9a92bd85e995fd2a5a93c2159;hb=6a3271735186a2b4d3c500f4f60c0c03a12bdd2f;hp=7abab0d374d3bd491f8b307e47e2d8d753f84109;hpb=3c0cb1f738f39c1e5800bd42d16189e72e365ec2;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler/music_sampler.kv b/music_sampler/music_sampler.kv index 7abab0d..0432e14 100644 --- a/music_sampler/music_sampler.kv +++ b/music_sampler/music_sampler.kv @@ -76,6 +76,22 @@ size_hint: None, None size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size +: + canvas.before: + Color: + rgba: 1, 0, 0, 0.9 + Rectangle: + pos: 0, 0 + size: self.width, self.height + size_hint: 1, 1 + color: 1, 1, 1, 1 + valign: "middle" + halign: "center" + font_name: "Ubuntu" + font_size: self.parent and 2 * self.parent.key_size or 42 + text_size: self.size + text: _("Focus lost!") + : canvas: Color: @@ -350,7 +366,7 @@ font_name: "Ubuntu" font_size: self.parent.font_size or 10 color: 0, 0, 0, 1 - text: "volume: {}%".format(self.parent.master_volume) + text: _("volume: {}%").format(self.parent.master_volume) valign: "top" size_hint: None, None size: self.texture_size[0], self.texture_size[1]