X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler%2Fmusic_sampler.kv;fp=music_sampler%2Fmusic_sampler.kv;h=afb99e411907a9e0c7de411bdb9f98a3f2d5f68a;hb=60aa2bed939858f9aec4252071c8efd99baac7e3;hp=8e94da8767eb92c6d2c9b383f57472166dacd62d;hpb=d734981b5145f1798f3301c135dc577b7aef293e;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler/music_sampler.kv b/music_sampler/music_sampler.kv index 8e94da8..afb99e4 100644 --- a/music_sampler/music_sampler.kv +++ b/music_sampler/music_sampler.kv @@ -226,13 +226,13 @@ : size_hint: None, None + labels_height: self.parent.max_height or 1 canvas: Color: rgba: 250./255, 250./255, 250./255, 1 Rectangle: pos: 0, 0 size: self.width, self.height - Label: id: action_list_title font_name: "Ubuntu" @@ -245,32 +245,33 @@ valign: "top" size_hint: None, None size: self.texture_size[0], self.parent.height - 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: + orientation: 'lr-tb' + size_hint: 0.02, 0.9 + pos_hint: { 'x': 0, 'top': 0.9 } + ActionListDescriptions: + orientation: 'lr-tb' + size_hint: 0.98, 0.9 + pos_hint: { 'x': 0.02, 'top': 0.9 } + +: + font_name: "Symbola" + color: 0, 0, 0, 1 + text_size: None, None + halign: "left" + size_hint: None, None + width: self.texture_size[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 + : size_hint: None, None labels_height: self.parent.max_height or 1 @@ -298,16 +299,18 @@ color: 0, 0, 0, 1 text_size: None, None halign: "left" - size_hint: 1, None + size_hint: None, None width: self.texture_size[0] : font_name: "Ubuntu" color: 0, 0, 0, 1 - text_size: None, None + text_size: self.width, None + shorten: True + shorten_from: "right" + split_str: "" halign: "left" - size_hint: None, None - width: self.texture_size[0] + size_hint: 1, None : canvas.before: