X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=blobdiff_plain;f=music_sampler%2Fmusic_sampler.kv;h=ffc2797e0bf44c8df87dbd2fba7e6940b5091a75;hp=4a91896c98a98eb55426829518e9068c4fec307c;hb=4d1dfc89066e8dbccf7e5049686895de6fcb32d2;hpb=182b6ab1544840ac1827dc95e7f6cd0f1c8d4862 diff --git a/music_sampler/music_sampler.kv b/music_sampler/music_sampler.kv index 4a91896..ffc2797 100644 --- a/music_sampler/music_sampler.kv +++ b/music_sampler/music_sampler.kv @@ -204,6 +204,7 @@ : size_hint: None, None labels_height: self.parent.max_height or 1 + font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) canvas: Color: rgba: 250./255, 250./255, 250./255, 1 @@ -214,7 +215,7 @@ id: action_list_title font_name: "Ubuntu" bold: True - font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) + font_size: self.parent.font_size color: 0, 0, 0, 1 text: self.parent.action_title text_size: None, self.parent.height @@ -223,15 +224,21 @@ size_hint: None, None size: self.texture_size[0], self.parent.height 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 } : + 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 @@ -240,6 +247,8 @@ width: self.texture_size[0] : + 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 @@ -252,6 +261,7 @@ : size_hint: None, None labels_height: self.parent.max_height or 1 + font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) canvas: Color: rgba: 250./255, 250./255, 250./255, 1 @@ -259,19 +269,27 @@ pos: 0, 0 size: self.width, self.height PlayListIcons: + font_size: self.parent.font_size + labels_height: self.parent.labels_height orientation: 'lr-tb' size_hint: 0.05, 1 pos_hints: { 'x': 0, 'top': 0 } PlayListNames: + font_size: self.parent.font_size + labels_height: self.parent.labels_height orientation: 'lr-tb' pos_hint: { 'x': 0.05, 'bottom': 0 } size_hint: 0.65, 1 PlayListTimes: + font_size: self.parent.font_size + labels_height: self.parent.labels_height orientation: 'lr-tb' pos_hint: { 'x': 0.7, 'bottom': 0 } size_hint: 0.30, 1 : + 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 @@ -280,6 +298,8 @@ width: self.texture_size[0] : + 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 @@ -290,6 +310,8 @@ size_hint: 1, None : + font_size: self.parent and self.parent.font_size or 10 + height: self.parent and self.parent.labels_height or 0 canvas.before: Color: rgba: 250./255, 250./255, 250./255, 1