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

commitae859b7a18a46f4d2a8badc0074abcb2d5ab2fbc
parentc39929f8d6
authorLucas Galante <[email protected]>
date2026-08-29 12:18
style: the breadcrumb menu is the same plate as the row menu

cce-ui's shared context menu paints itself now (cce-ui 7b299d3), so the
breadcrumb's copy-path menu drops the extra_quads loop for one paint()
call and comes up as the same frosted plate the row menu has worn since
4160267 — rounded, translucent, rolled edge, semantic label colors.

Both menus in this window are one material again. They were diverging
with every step: the row menu became a plate, then took the host plate's
face and the frost, while the breadcrumb's stayed a near-black box with
square corners and a 1px border.

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

 src/main.rs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index c002bc4..90e5b32 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1641,9 +1641,10 @@ impl Application for FilesystemApp {
                 cce_ui::widget::context_menu::x() + cce_ui::widget::context_menu::w(),
                 cce_ui::widget::context_menu::y() + cce_ui::widget::context_menu::h(),
             ]);
-            for (qx, qy, qw, qh, qc) in cce_ui::widget::context_menu::extra_quads() {
-                pc.quad(Rect { x: qx, y: qy, width: qw, height: qh }, qc);
-            }
+            // The shared menu paints itself as a lit plate (cce-ui), so the
+            // breadcrumb's copy-path menu is the same frosted glass as the row
+            // menu above rather than the flat quads it used to stack.
+            cce_ui::widget::context_menu::paint(&mut pc);
             for label in cce_ui::widget::context_menu::text_labels() {
                 pc.text_with(
                     label.text.clone(),