git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commitb7a418260eede767200ea963af7fd7a98878f278
parentb5643f684a
authorLucas Galante <[email protected]>
date2026-08-06 14:54
feat: expose ui_context_mut for engine-driven dropdown animation

The engine ticks the exposed context each loop — this drives the
dropdown expand/contract animation frames (the grown-trigger popover
treatment from cce-ui).

Co-Authored-By: Claude Fable 5 <[email protected]>

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

diff --git a/src/main.rs b/src/main.rs
index 7c62260..acba659 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -883,6 +883,12 @@ impl Application for FilesystemApp {
         Some(&self.ui_context)
     }
 
+    // The engine ticks the exposed context each loop — this is what drives the
+    // dropdown expand/contract animation frames.
+    fn ui_context_mut(&mut self) -> Option<&mut cce_ui::context::UiContext> {
+        Some(&mut self.ui_context)
+    }
+
     fn is_movable_backplate_at(&self, px: f32, py: f32) -> bool {
         // 1. If dialog is open, do not drag
         if self.open_with_dialog.is_some() {