1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-12 05:26:00 +03:00

examples/target-disk-mode: Use enhanced header

This commit is contained in:
Samuel Dionne-Riel 2021-06-13 17:37:30 -04:00
parent 0cf7b754f9
commit 7ae6ed6a66

View File

@ -1,3 +1,16 @@
class LVGUI::BaseWindow
attr_reader :header_bar
def on_initialization_finished()
@header_bar.refresh_sizes()
end
def on_header_init()
@header_bar = MobileNixOS::EnhancedHeaderBar.new(@screen)
@header_bar.set_label("Target Disk Mode")
end
end
GUI::MainWindow.instance.present
LVGUI.main_loop