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

commitcb65dfcf845482cc0aeab407d66347c1e0951807
parent2260501645
authorLucas Galante <[email protected]>
date2026-08-19 13:51
restyle: mirror the breadcrumb's new inset-plate relief flat-path side

breadcrumb_relief follows the widget's restyle: relief_inset on the
segment run (the dropdown_relief idiom, full control height) instead of
the retired full-rect recessed well + raised run. Grooved seams
unchanged. Same call site and PageContent as before — the ordering
notes in the doc comment still hold.

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

 src/pages/mod.rs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/pages/mod.rs b/src/pages/mod.rs
index a1ff07a..9130f8b 100644
--- a/src/pages/mod.rs
+++ b/src/pages/mod.rs
@@ -71,10 +71,12 @@ pub fn breadcrumb_relief(
     rect: cce_ui::scene::layout::Rect,
 ) {
     let r = cce_ui::layout::breadcrumb_corner_radius();
-    pc.relief_recessed(rect.x, rect.y, rect.width, rect.height, r);
     let Some(run) = breadcrumb.run_box(rect) else { return };
     let (rx, ry, rw, rh) = run;
-    pc.relief_raised(rx, ry, rw, rh, r.min(rh * 0.5));
+    // The dropdown's flush inset plate on the segment run (mirroring
+    // Breadcrumb::paint's relief branch) — the full-rect recessed well and
+    // the raised run inside it are gone with the restyle.
+    pc.relief_inset(rx, ry, rw, rh, r.min(rh * 0.5));
     for (a, b) in breadcrumb.seams(rect) {
         pc.groove(a, b, cce_ui::widget::Breadcrumb::SEAM_WIDTH, run);
     }