mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
examples/hello: Simplify main window implementation
This commit is contained in:
parent
a791631b33
commit
cb49e49b75
@ -1,15 +1,11 @@
|
||||
module GUI
|
||||
class MainWindow < LVGUI::BaseWindow
|
||||
include LVGUI::BaseUIElements
|
||||
include LVGUI::ButtonPalette
|
||||
def initialize()
|
||||
super()
|
||||
|
||||
LVGL::LVLabel.new(@container).tap do |label|
|
||||
label.set_long_mode(LVGL::LABEL_LONG::BREAK)
|
||||
label.set_text(%Q{Your device booted to\nstage-2 of a NixOS system successfully!\n\nSelect from the following options})
|
||||
label.set_align(LVGL::LABEL_ALIGN::CENTER)
|
||||
label.set_width(@container.get_width_fit)
|
||||
end
|
||||
add_main_text(%Q{Your device booted to\nstage-2 of a NixOS system successfully!\n\nSelect from the following options})
|
||||
|
||||
add_buttons([
|
||||
["Display validation", ->() { DisplayValidationWindow.instance.present }],
|
||||
|
Loading…
Reference in New Issue
Block a user