git.lucas.co / cce-designer
graphic design tool
git clone https://git.lucas.co/cce-designer.git

commite3c59cca6ee3651c8c30520bc18dd0cc66954a21
parent4147c6d8bd
authorLucas Galante <[email protected]>
date2026-07-24 15:08
feat: tighter node edge bevel — half the plate roll width

The plate's full bevel_width made the lit roll eat most of a small
node body; halve it for nodes so the flat face reads.

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

 src/render.rs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/render.rs b/src/render.rs
index 2abea77..7e7ba00 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -198,7 +198,10 @@ impl State {
                 // tint on its bevel, so selection still reads.
                 let node_r = cce_ui::layout::graph_node_corner_radius();
                 let radii = (node_r, node_r, node_r, node_r);
-                let node_bevel = cce_ui::colors::plate_bevel_width();
+                // Half the plate's roll: a node is far smaller than the pane,
+                // so the plate's full bevel width would eat most of the body —
+                // a tighter lip keeps the flat face reading.
+                let node_bevel = cce_ui::colors::plate_bevel_width() * 0.5;
                 let node_fill = cce_ui::colors::param_plate_fill();
                 let sel = cce_ui::colors::node_selected_color();
                 let drag = cce_ui::colors::node_drag_color();