]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler/music_sampler.kv
Make music_sampler multilingual
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / music_sampler.kv
index 7abab0d374d3bd491f8b307e47e2d8d753f84109..0432e1458aac09f9a92bd85e995fd2a5a93c2159 100644 (file)
     size_hint: None, None
     size: 2 * self.parent.width - 2 * self.parent.line_width, self.parent.height - key_label.font_size
 
+<UnfocusedOverlay>:
+  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!")
+
 <Screen>:
   canvas:
     Color:
     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]