git.lucas.co / cce-system-interface
system settings
git clone https://git.lucas.co/cce-system-interface.git

commit5e6b5b8f9ccd04215346134944e59986e2d68c00
parent674a81a947
authorLucas Galante <[email protected]>
date2026-09-03 12:23
page dropdown: open as the page list alone

The open menu no longer repeats the current page's title in a trigger
band under the rows — the list sits where the trigger was, with the
current page marked blue in it (cce-ui's with_menu_replaces_trigger).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AxEbg3N3GndoetpY7LThEA

 src/main.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 545e7c5..77d118d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -148,7 +148,11 @@ impl cce_ui::engine::Application for SystemInterface {
         let pages_names = Page::ALL.iter().map(|p| p.label().to_string()).collect::<Vec<_>>();
         let page_dropdown = cce_ui::widget::input::Dropdown::new(pages_names, initial_page_idx)
             .with_open_upward(true)
-            .with_auto_width(true);
+            .with_auto_width(true)
+            // The open menu is the page list alone, sat where the trigger was:
+            // the current page already reads blue in the list, so the trigger
+            // band repeating its title under the rows was noise.
+            .with_menu_replaces_trigger(true);
         let sidebar_width = 0.0f32;
 
         let mut app_state = app;