- Label:
- id: action_list_icons
- font_name: "Symbola"
- font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
- line_height: self.parent.parent.symbola_line_height or 1
- color: 0, 0, 0, 1
- text: "\n".join(map(lambda x: x[0], self.parent.action_list))
- text_size: None, self.parent.height
- halign: "left"
- valign: "top"
- size_hint: None, None
- size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
- Label:
- id: action_list_names
- font_name: "Ubuntu"
- font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10))
- line_height: self.parent.parent.ubuntu_regular_line_height or 1
- color: 0, 0, 0, 1
- text: "\n".join(map(lambda x: x[1], self.parent.action_list))
- text_size: None, self.parent.height
- halign: "left"
- valign: "top"
- size_hint: None, None
- pos: 15, self.y
- size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size
-
+ ActionListIcons:
+ font_size: self.parent.font_size
+ labels_height: self.parent.labels_height
+ orientation: 'lr-tb'
+ size_hint: 0.02, 0.9
+ pos_hint: { 'x': 0, 'top': 0.9 }
+ ActionListDescriptions:
+ font_size: self.parent.font_size
+ labels_height: self.parent.labels_height
+ orientation: 'lr-tb'
+ size_hint: 0.98, 0.9
+ pos_hint: { 'x': 0.02, 'top': 0.9 }
+
+<ActionListIcon>:
+ font_size: self.parent and self.parent.font_size or 10
+ height: self.parent and self.parent.labels_height or 0
+ font_name: "Symbola"
+ color: 0, 0, 0, 1
+ text_size: None, None
+ halign: "left"
+ size_hint: None, None
+ width: self.texture_size[0]
+
+<ActionListDescription>:
+ font_size: self.parent and self.parent.font_size or 10
+ height: self.parent and self.parent.labels_height or 0
+ font_name: "Ubuntu"
+ color: 0, 0, 0, 1
+ text_size: self.width, None
+ shorten: True
+ shorten_from: "right"
+ split_str: ""
+ halign: "left"
+ size_hint: 1, None
+