From 5d62d992967cbd9a0933d2acd5cbe4e666f233ce Mon Sep 17 00:00:00 2001
From: Federico Lolli <federico.lolli@skywarder.eu>
Date: Thu, 14 Nov 2024 18:09:38 +0100
Subject: [PATCH] [view] Moved up TopBottomPanel and fixed issue with covered
 central view

---
 src/ui/composable_view.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/ui/composable_view.rs b/src/ui/composable_view.rs
index 5b308d6..db58813 100644
--- a/src/ui/composable_view.rs
+++ b/src/ui/composable_view.rs
@@ -95,15 +95,15 @@ impl eframe::App for ComposableView {
             }
         }
 
-        // A central panel covers the remainder of the screen, i.e. whatever area is left after adding other panels.
-        egui::CentralPanel::default().show(ctx, |ui| {
-            self.panes_tree.ui(&mut self.behavior, ui);
-        });
-
         // Show a panel at the bottom of the screen with few global controls
         egui::TopBottomPanel::bottom("bottom_control").show(ctx, |ui| {
             egui::global_theme_preference_switch(ui);
         });
+
+        // A central panel covers the remainder of the screen, i.e. whatever area is left after adding other panels.
+        egui::CentralPanel::default().show(ctx, |ui| {
+            self.panes_tree.ui(&mut self.behavior, ui);
+        });
     }
 }
 
-- 
GitLab