mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-11 21:17:45 +03:00
examples/target-disk-mode: Use enhanced header
This commit is contained in:
parent
0cf7b754f9
commit
7ae6ed6a66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user