adjust menu font

This commit is contained in:
Sundog Jones 2020-08-02 14:04:24 -07:00
parent 99b47cdc08
commit bc951e3c5a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class SoundslabDisplay:
menu_overlay.rectangle([(21,21), (self.screen_size[0] - 21,self.screen_size[1] - 21)], bg_color) 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 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-Bold.ttf', size=20) font = ImageFont.truetype(font='/usr/share/fonts/truetype/hack/Hack-Bold.ttf', size=14)
for row in menu_data: for row in menu_data:
if row["selected"]: 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 menu_overlay.rectangle([(21, offset_from_top),(self.screen_size[0] - 21, offset_from_top + 40)], fg_color) # highlight background for selected menu item