Move python resources into the common package

Reduces duplication of these binary files across multiple clients
This commit is contained in:
Daniel Markstedt
2025-11-24 01:39:48 +01:00
parent a152252a9e
commit a872333458
15 changed files with 29 additions and 25 deletions

View File

@@ -172,7 +172,7 @@ def main():
menu_controller.add(CtrlBoardMenuBuilder.SCSI_ID_MENU)
menu_controller.add(CtrlBoardMenuBuilder.ACTION_MENU)
menu_controller.show_splash_screen("resources/splash_start_64.bmp")
menu_controller.show_splash_screen("../common/resources/splash_start_64.bmp")
menu_update_event_handler = CtrlBoardMenuUpdateEventHandler(
menu_controller, sock_cmd=sock_cmd, piscsi_cmd=piscsi_cmd

View File

@@ -14,7 +14,7 @@ class MenuRendererConfig:
self.i2c_address = 0x3C
self.i2c_port = 1
self.display_type = "ssd1306" # luma-oled supported devices, "sh1106", "ssd1306", ...
self.font_path = "resources/DejaVuSansMono-Bold.ttf"
self.font_path = "../common/resources/DejaVuSansMono-Bold.ttf"
self.font_size = 12
self.row_selection_pixel_extension = 2
self.scroll_behavior = "page" # "extend" or "page"