From 991ca7b548e0417146ec082dc89ccb8b8d0e09d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Wed, 14 Oct 2026 23:23:30 -0400 Subject: [PATCH] Column shell: glass grounds the columns in the palette's glass, so a blurred window shows through them --- src/shell/columns.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/shell/columns.rs b/src/shell/columns.rs index 236ba69..a7eb250 100644 --- a/src/shell/columns.rs +++ b/src/shell/columns.rs @@ -73,6 +73,7 @@ pub struct ColumnShell { platform: Option, on_close: Option, columns: Vec, + glass: bool, } impl ColumnShell { @@ -83,6 +84,7 @@ impl ColumnShell { platform: None, on_close: None, columns: Vec::new(), + glass: false, } } @@ -102,6 +104,12 @@ impl ColumnShell { self.on_close = Some(Rc::new(handler)); self } + + /// Grounds the columns in the palette's glass, so a blurred window shows through them. + pub fn glass(mut self) -> Self { + self.glass = true; + self + } } impl RenderOnce for ColumnShell { @@ -175,11 +183,16 @@ impl RenderOnce for ColumnShell { ); } let theme = cx.theme(); + let ground = if self.glass { + theme.colors.glass + } else { + theme.colors.bg + }; div() .flex() .h_full() .debug_selector(|| "column-shell".into()) - .bg(theme.colors.bg) + .bg(ground) .text_color(theme.colors.fg) .children(columns) }