aboutsummaryrefslogtreecommitdiff
path: root/music_sampler
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2021-08-16 22:27:12 +0200
committerIsmaël Bouya <ismael.bouya@fretlink.com>2021-08-17 02:14:46 +0200
commit7b4791cfb73136db35160989c08660db55c3c34e (patch)
treecf82e793ded811abc23e793734a3628a7f22cbcd /music_sampler
parentb45837641542cf18e2410dcbaa7ecba1bdc3905d (diff)
downloadMusicSampler-7b4791cfb73136db35160989c08660db55c3c34e.tar.gz
MusicSampler-7b4791cfb73136db35160989c08660db55c3c34e.tar.zst
MusicSampler-7b4791cfb73136db35160989c08660db55c3c34e.zip
Upgrade to latest versions1.6.0
Diffstat (limited to 'music_sampler')
-rw-r--r--music_sampler/music_sampler.kv6
-rw-r--r--music_sampler/sysfont.py5
2 files changed, 7 insertions, 4 deletions
diff --git a/music_sampler/music_sampler.kv b/music_sampler/music_sampler.kv
index 839d2ce..55df12c 100644
--- a/music_sampler/music_sampler.kv
+++ b/music_sampler/music_sampler.kv
@@ -30,15 +30,15 @@
30 rgba: self.line_color 30 rgba: self.line_color
31 Line: 31 Line:
32 rounded_rectangle: self.x + self.line_width, self.y + self.line_width, self.width - 2 * self.line_width, self.height - 2 * self.line_width, 10 32 rounded_rectangle: self.x + self.line_width, self.y + self.line_width, self.width - 2 * self.line_width, self.height - 2 * self.line_width, 10
33 width: self.line_width 33 width: self.line_width or 2
34 Color: 34 Color:
35 rgba: self.line_cross_color 35 rgba: self.line_cross_color
36 Line: 36 Line:
37 points: self.x + self.line_width + 3, self.y + self.line_width + 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.height - 2 * self.line_width - 3 37 points: self.x + self.line_width + 3, self.y + self.line_width + 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.height - 2 * self.line_width - 3
38 width: self.line_width 38 width: self.line_width or 2
39 Line: 39 Line:
40 points: self.x + self.line_width + 3, self.y + self.height - 2 * self.line_width - 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.line_width + 3 40 points: self.x + self.line_width + 3, self.y + self.height - 2 * self.line_width - 3, self.x + self.width - 2 * self.line_width - 3, self.y + self.line_width + 3
41 width: self.line_width 41 width: self.line_width or 2
42 Label: 42 Label:
43 id: key_label 43 id: key_label
44 font_name: "Ubuntu" 44 font_name: "Ubuntu"
diff --git a/music_sampler/sysfont.py b/music_sampler/sysfont.py
index 7bb518e..cdb3bf3 100644
--- a/music_sampler/sysfont.py
+++ b/music_sampler/sysfont.py
@@ -141,7 +141,10 @@ def _cache_fonts_fontconfig():
141 141
142 # family and styles 142 # family and styles
143 family = values[1].strip().lower() 143 family = values[1].strip().lower()
144 stylevals = values[2].strip() 144 if len(values) > 2:
145 stylevals = values[2].strip()
146 else:
147 stylevals = ""
145 style = STYLE_NONE 148 style = STYLE_NONE
146 149
147 if stylevals.find("Bold") >= 0: 150 if stylevals.find("Bold") >= 0: