adjust menu font
This commit is contained in:
parent
f0556afd28
commit
99b47cdc08
@ -93,7 +93,7 @@ class SoundslabDisplay:
|
||||
menu_overlay.rectangle([(21,21), (self.screen_size[0] - 21,self.screen_size[1] - 21)], bg_color)
|
||||
|
||||
offset_from_top = 21 # start at the 21st row of pixels to draw inside the outer overlay
|
||||
font = ImageFont.truetype(font='/usr/share/fonts/truetype/hack/Hack-Regular.ttf', size=14)
|
||||
font = ImageFont.truetype(font='/usr/share/fonts/truetype/hack/Hack-Bold.ttf', size=20)
|
||||
for row in menu_data:
|
||||
if row["selected"]:
|
||||
menu_overlay.rectangle([(21, offset_from_top),(self.screen_size[0] - 21, offset_from_top + 40)], fg_color) # highlight background for selected menu item
|
||||
|
Loading…
Reference in New Issue
Block a user