system settings
git clone https://git.lucas.co/cce-system-interface.git
Fix dropdown z-order rendering to draw on top of statusbar
src/main.rs | 2 +-
src/renderer.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 5b065de..2356a0f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -322,9 +322,9 @@ impl cce_ui::engine::Application for SystemInterface {
this.switcher.add_child(page.as_ptr(), &mut this.ui_context);
}
- this.root_window.add_child(this.page_dropdown.as_ptr(), &mut this.ui_context);
this.root_window.add_child(this.switcher.as_ptr(), &mut this.ui_context);
this.root_window.add_child(this.statusbar.as_ptr(), &mut this.ui_context);
+ this.root_window.add_child(this.page_dropdown.as_ptr(), &mut this.ui_context);
this.update_status_text();
diff --git a/src/renderer.rs b/src/renderer.rs
index 6b864af..5b1e183 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -78,9 +78,9 @@ impl SystemInterface {
self.root_window.background_color = Some(cce_ui::color::to_linear([win_r, win_g, win_b, win_a]));
self.root_window.radius = 12.0;
self.root_window.clear_children(&mut self.ui_context);
- self.root_window.add_child(self.page_dropdown.as_ptr(), &mut self.ui_context);
self.root_window.add_child(self.switcher.as_ptr(), &mut self.ui_context);
self.root_window.add_child(self.statusbar.as_ptr(), &mut self.ui_context);
+ self.root_window.add_child(self.page_dropdown.as_ptr(), &mut self.ui_context);
if self.search_open {
use cce_ui::widget::focus::link_parent_child;
link_parent_child(&mut self.root_window, &mut self.search_box, &mut self.ui_context);