graphic design tool
git clone https://git.lucas.co/cce-designer.git
fix: the scene viewer lip rolls at the window-edge width
The lip is the window's own backplate edge, but its Boss rim took its
depth from colors::plate_bevel_width (style.surface.plate.bevel_width,
default 6.0) — the interior pane-plate value — while every other
window's root plate rolls at layout::bevel_width
(style.surface.relief.width, configured 9.3). Pass the window-edge
width so the lip matches other windows' edges.
Co-Authored-By: Claude Fable 5 <[email protected]>
src/render.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/render.rs b/src/render.rs
index 7f60f49..9e32b4c 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -307,7 +307,11 @@ impl State {
let vp_rect = rect(px, py, pw, ph);
let radii = self.pane_plate_radii(px, py, pw, ph);
if cce_ui::layout::control_relief() {
- let depth = cce_ui::colors::plate_bevel_width();
+ // Window-edge roll width, NOT plate_bevel_width: the lip
+ // is the window's own backplate edge, so it matches the
+ // root plates of other windows (style.surface.relief
+ // width), not the designer's interior pane plates.
+ let depth = cce_ui::layout::bevel_width();
if let Some(tint) = self.plate_focus_tint(idx) {
pc.boss_edges_tinted(vp_rect, radii, depth, (true, true, true, true), tint);
} else {