mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 13:31:36 +03:00
26 lines
700 B
Ruby
26 lines
700 B
Ruby
module GUI
|
|
class AboutWindow < LVGUI::BaseWindow
|
|
include LVGUI::ButtonPalette
|
|
include LVGUI::Window::WithBackButton
|
|
goes_back_to ->() { MainWindow.instance }
|
|
|
|
def initialize()
|
|
super()
|
|
|
|
LVGL::LVLabel.new(@container).tap do |label|
|
|
text = <<EOF
|
|
Mobile NixOS "Hello GUI"
|
|
|
|
This application is intended to provide a minimum viable known working framebuffer application to test different components of your mobile device.
|
|
|
|
This is NOT a complete useful system.
|
|
EOF
|
|
label.set_long_mode(LVGL::LABEL_LONG::BREAK)
|
|
label.set_text(text)
|
|
label.set_align(LVGL::LABEL_ALIGN::CENTER)
|
|
label.set_width(@container.get_width_fit)
|
|
end
|
|
end
|
|
end
|
|
end
|