git.lucas.co / cce-gallery
widget gallery and compositor test bench

commitd8e736783e836dc461ebbe0f60529544361916c2
parent79a35c1f50
authorLucas Galante <[email protected]>
date2026-07-04 22:09
Configure bevel on simulated child window Backplates in test interface

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

diff --git a/src/main.rs b/src/main.rs
index 92e9e98..4288458 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -400,7 +400,11 @@ impl State {
                 None => "This is an active simulated window in the window manager.".to_string(),
             };
             let bg: Box<dyn Element> = if use_backplate {
-                Box::new(Backplate::new(0.0, 0.0, lw, lh).with_movable(false))
+                let mut bp = Backplate::new(0.0, 0.0, lw, lh).with_movable(false);
+                if border_bevel {
+                    bp = bp.with_bevel(true, border_width);
+                }
+                Box::new(bp)
             } else {
                 Box::new(ContentBg::new())
             };