widget gallery and compositor test bench
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())
};