]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler/music_sampler.kv
Add config
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / music_sampler.kv
index ae5dbd7787251535b8cc907b167fd36e18e10acf..55df12cfb34eee04f96b46bcae61e8e4067d69b5 100644 (file)
       rgba: self.line_color
     Line:
       rounded_rectangle: self.x + self.line_width, self.y + self.line_width, self.width - 2 * self.line_width, self.height - 2 * self.line_width, 10
-      width: self.line_width
+      width: self.line_width or 2
     Color:
       rgba: self.line_cross_color
     Line:
       points: self.x + self.line_width + 3, self.y + self.line_width + 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.height - 2 * self.line_width - 3
-      width: self.line_width
+      width: self.line_width or 2
     Line:
       points: self.x + self.line_width + 3, self.y + self.height - 2 * self.line_width - 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.line_width + 3
-      width: self.line_width
+      width: self.line_width or 2
   Label:
     id: key_label
     font_name: "Ubuntu"
@@ -90,7 +90,7 @@
   font_name: "Ubuntu"
   font_size: self.parent and 2 * self.parent.key_size or 42
   text_size: self.size
-  text: "Focus lost!"
+  text: _("Focus lost!")
 
 <Screen>:
   canvas:
     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