feat: add native material backgrounds

This commit is contained in:
2026-11-09 09:52:29 +07:00
parent 8c438ed8a6
commit 7784e8d570
14 changed files with 279 additions and 36 deletions
+4 -2
View File
@@ -1078,8 +1078,10 @@ fn render_pane(
.w_full()
.h(titlebar.height)
.items_center()
.when(titlebar.traffic_light_pad, |bar| {
bar.pl(px(TRAFFIC_LIGHT_PAD))
.pl(if titlebar.traffic_light_pad {
px(TRAFFIC_LIGHT_PAD)
} else {
padding_x
})
.pr(padding_x)
.child(tabs)