mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 05:21:47 +03:00
22 lines
630 B
Ruby
22 lines
630 B
Ruby
module GUI
|
|
class MainWindow < BaseWindow
|
|
include ButtonPalette
|
|
def initialize()
|
|
super()
|
|
|
|
LVGL::LVLabel.new(@container).tap do |label|
|
|
label.set_long_mode(LVGL::LABEL_LONG::BREAK)
|
|
label.set_text(%Q{\nSelect from the following options})
|
|
label.set_align(LVGL::LABEL_ALIGN::CENTER)
|
|
label.set_width(@container.get_width_fit)
|
|
end
|
|
|
|
add_buttons([
|
|
["Display validation", ->() { DisplayValidationWindow.instance.present }],
|
|
["About", ->() { AboutWindow.instance.present }],
|
|
["Quit", ->() { QuitWindow.instance.present }],
|
|
])
|
|
end
|
|
end
|
|
end
|