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

commitd21cae8ac4b5cc61183d47a204c930d85c119b10
parentc5f765b1fb
authorLucas Galante <[email protected]>
date2026-07-08 10:04
refactor: adapt Button fields to the cce-ui Phase 5 migration

Button::new now returns Adapted<Button>; concrete-typed fields become
Adapted<Button>. Construction sites, builder chains, and method calls
are unchanged (Deref + Element forwards + mirrored builders).

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

 src/main.rs      | 2 +-
 src/pages/mod.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 4f508fd..4fbcab1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -311,7 +311,7 @@ struct FilesystemApp {
     width: u32,
     height: u32,
     scale_factor: f64,
-    page_buttons: Vec<(cce_ui::widget::Button, Message)>,
+    page_buttons: Vec<(cce_ui::widget::Adapted<cce_ui::widget::Button>, Message)>,
     cursor_x: f32,
     cursor_y: f32,
     paginator: Paginator,
diff --git a/src/pages/mod.rs b/src/pages/mod.rs
index b3d36a7..e70ce10 100644
--- a/src/pages/mod.rs
+++ b/src/pages/mod.rs
@@ -34,7 +34,7 @@ impl Page {
 pub struct PageContent {
     pub rects: Vec<([f32; 4], f32, f32, f32, f32, f32, (bool, bool, bool, bool))>,
     pub texts: Vec<(String, f32, f32, f32, [f32; 4], Option<String>, Option<[f32; 4]>)>,
-    pub buttons: Vec<(cce_ui::widget::Button, crate::Message)>,
+    pub buttons: Vec<(cce_ui::widget::Adapted<cce_ui::widget::Button>, crate::Message)>,
 }
 
 impl PageContent {