mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-11 09:04:01 +03:00
boot/error: Load SVG using new resize workaround
This commit is contained in:
parent
6514fd82f3
commit
87ac4c8813
@ -113,9 +113,8 @@ class UI
|
|||||||
file = "sad.svg" if File.exist?("sad.svg")
|
file = "sad.svg" if File.exist?("sad.svg")
|
||||||
return unless file
|
return unless file
|
||||||
|
|
||||||
LVGL::Hacks::LVNanoSVG.resize_next_height(@title_bar.get_height - 2 * padding)
|
|
||||||
@sad_phone = LVGL::LVImage.new(@screen)
|
@sad_phone = LVGL::LVImage.new(@screen)
|
||||||
@sad_phone.set_src(file)
|
@sad_phone.set_src("#{file}?height=#{@title_bar.get_height - 2 * padding}")
|
||||||
@sad_phone.set_pos(2 * padding, padding)
|
@sad_phone.set_pos(2 * padding, padding)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user