layout: add transparent and grain options to shell

This commit is contained in:
2026-11-15 11:52:51 +07:00
parent 032158fc01
commit d2ac4c446d
5 changed files with 49 additions and 8 deletions
+1 -4
View File
@@ -1,4 +1,4 @@
//! The panel row: the window's main content, island-style on the muted
//! The panel row: the window's main content, island-style over the app
//! background. It can split once into two half-width panels with a drag
//! divider between them; dragging the seam resizes the panels and a
//! double-click restores the half split.
@@ -67,8 +67,6 @@ impl Panel {
impl RenderOnce for Panel {
fn render(self, window: &mut Window, cx: &mut App) -> impl IntoElement {
let theme = cx.theme();
let app_background = theme.colors.muted;
let id = self.id.clone();
let gutter = rems(0.5).to_pixels(window.rem_size());
@@ -113,7 +111,6 @@ impl RenderOnce for Panel {
// bottom edge, so the top gutter is narrower to even out.
.p_2()
.pt_1()
.bg(app_background)
.child(row)
}
}