From 7ae6ed6a660ace3d31bde3d867b1c0c3fcbc7958 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sun, 13 Jun 2021 17:37:30 -0400 Subject: [PATCH] examples/target-disk-mode: Use enhanced header --- examples/target-disk-mode/app/main.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/target-disk-mode/app/main.rb b/examples/target-disk-mode/app/main.rb index a7f40525..635be771 100644 --- a/examples/target-disk-mode/app/main.rb +++ b/examples/target-disk-mode/app/main.rb @@ -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