]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler/music_sampler.kv
Change "keys" hash to "key_properties" in config.yml
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / music_sampler.kv
index 7abab0d374d3bd491f8b307e47e2d8d753f84109..839d2ce5d50cf30b692b1504b0b57b2347acfe53 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]
     key_sym: "^"
     row: 3
     col: 12.5
+    line_width: 1
+    enabled: False
   Key:
     id: Key_36
     key_code: 36
     row: 4
     col: 1
     key_width: 1.75
-    line_width: 1
-    enabled: False
 
   Key:
     id: Key_113