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]