boot/splash: Review for assets path
@@ -16,7 +16,7 @@ class UI
attr_reader :ask_identifier
# As this is not using BaseWindow, LVGUI::init isn't handled for us.
- LVGUI.init(theme: :night)
+ LVGUI.init(theme: :night, assets_path: "boot-splash/assets")
def initialize()
add_screen
@@ -49,11 +49,7 @@ class UI
end
def add_logo()
- # Try to find the logo, but don't fail if there isn't one.
- file = nil
- file = "/etc/logo.svg" if File.exist?("/etc/logo.svg")
- file = "./logo.svg" if File.exist?("./logo.svg")
- return unless file
+ file = LVGL::Hacks.get_asset_path("logo.svg")
if @page.get_height > @page.get_width
# 80% of the width
