font browser
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 | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 8132352..7d891be 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -35,7 +35,7 @@ struct TypefaceApp {
// Browse panel
search_box: TextBox,
font_list: List,
- font_buttons: Vec<Button>,
+ font_buttons: Vec<cce_ui::widget::Adapted<cce_ui::widget::Button>>,
// Preview panel
style_dropdown: Dropdown,
@@ -43,12 +43,12 @@ struct TypefaceApp {
preview_box: TextBox,
// Details panel
- btn_open_folder: Button,
- btn_remove_font: Button,
+ btn_open_folder: cce_ui::widget::Adapted<cce_ui::widget::Button>,
+ btn_remove_font: cce_ui::widget::Adapted<cce_ui::widget::Button>,
// Selection mode buttons
- select_cancel_btn: Button,
- select_confirm_btn: Button,
+ select_cancel_btn: cce_ui::widget::Adapted<cce_ui::widget::Button>,
+ select_confirm_btn: cce_ui::widget::Adapted<cce_ui::widget::Button>,
select_mode: bool,
last_click_idx: Option<usize>,
click_timer: f32,