aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/music_sampler.kv
diff options
context:
space:
mode:
Diffstat (limited to 'music_sampler/music_sampler.kv')
-rw-r--r--music_sampler/music_sampler.kv65
1 files changed, 34 insertions, 31 deletions
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 @@
226 226
227<ActionList>: 227<ActionList>:
228 size_hint: None, None 228 size_hint: None, None
229 labels_height: self.parent.max_height or 1
229 canvas: 230 canvas:
230 Color: 231 Color:
231 rgba: 250./255, 250./255, 250./255, 1 232 rgba: 250./255, 250./255, 250./255, 1
232 Rectangle: 233 Rectangle:
233 pos: 0, 0 234 pos: 0, 0
234 size: self.width, self.height 235 size: self.width, self.height
235
236 Label: 236 Label:
237 id: action_list_title 237 id: action_list_title
238 font_name: "Ubuntu" 238 font_name: "Ubuntu"
@@ -245,32 +245,33 @@
245 valign: "top" 245 valign: "top"
246 size_hint: None, None 246 size_hint: None, None
247 size: self.texture_size[0], self.parent.height 247 size: self.texture_size[0], self.parent.height
248 Label: 248 ActionListIcons:
249 id: action_list_icons 249 orientation: 'lr-tb'
250 font_name: "Symbola" 250 size_hint: 0.02, 0.9
251 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) 251 pos_hint: { 'x': 0, 'top': 0.9 }
252 line_height: self.parent.parent.symbola_line_height or 1 252 ActionListDescriptions:
253 color: 0, 0, 0, 1 253 orientation: 'lr-tb'
254 text: "\n".join(map(lambda x: x[0], self.parent.action_list)) 254 size_hint: 0.98, 0.9
255 text_size: None, self.parent.height 255 pos_hint: { 'x': 0.02, 'top': 0.9 }
256 halign: "left" 256
257 valign: "top" 257<ActionListIcon>:
258 size_hint: None, None 258 font_name: "Symbola"
259 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size 259 color: 0, 0, 0, 1
260 Label: 260 text_size: None, None
261 id: action_list_names 261 halign: "left"
262 font_name: "Ubuntu" 262 size_hint: None, None
263 font_size: math.ceil(2 * math.sqrt(self.parent.parent.key_size or 10)) 263 width: self.texture_size[0]
264 line_height: self.parent.parent.ubuntu_regular_line_height or 1 264
265 color: 0, 0, 0, 1 265<ActionListDescription>:
266 text: "\n".join(map(lambda x: x[1], self.parent.action_list)) 266 font_name: "Ubuntu"
267 text_size: None, self.parent.height 267 color: 0, 0, 0, 1
268 halign: "left" 268 text_size: self.width, None
269 valign: "top" 269 shorten: True
270 size_hint: None, None 270 shorten_from: "right"
271 pos: 15, self.y 271 split_str: ""
272 size: self.texture_size[0], self.parent.height - 3 * self.line_height * self.font_size 272 halign: "left"
273 273 size_hint: 1, None
274
274<PlayList>: 275<PlayList>:
275 size_hint: None, None 276 size_hint: None, None
276 labels_height: self.parent.max_height or 1 277 labels_height: self.parent.max_height or 1
@@ -298,16 +299,18 @@
298 color: 0, 0, 0, 1 299 color: 0, 0, 0, 1
299 text_size: None, None 300 text_size: None, None
300 halign: "left" 301 halign: "left"
301 size_hint: 1, None 302 size_hint: None, None
302 width: self.texture_size[0] 303 width: self.texture_size[0]
303 304
304<PlayListName>: 305<PlayListName>:
305 font_name: "Ubuntu" 306 font_name: "Ubuntu"
306 color: 0, 0, 0, 1 307 color: 0, 0, 0, 1
307 text_size: None, None 308 text_size: self.width, None
309 shorten: True
310 shorten_from: "right"
311 split_str: ""
308 halign: "left" 312 halign: "left"
309 size_hint: None, None 313 size_hint: 1, None
310 width: self.texture_size[0]
311 314
312<PlayListTime>: 315<PlayListTime>:
313 canvas.before: 316 canvas.before: