Skip to repository content20 lines · 603 B · rust
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T03:35:59.724Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
appearance.rs
1use crate::prelude::*;
2use gpui::{App, WindowBackgroundAppearance};
3
4/// Returns the [WindowBackgroundAppearance].
5fn window_appearance(cx: &mut App) -> WindowBackgroundAppearance {
6 cx.theme().styles.window_background_appearance
7}
8
9/// Returns if the window and it's surfaces are expected
10/// to be transparent.
11///
12/// Helps determine if you need to take extra steps to prevent
13/// transparent backgrounds.
14pub fn theme_is_transparent(cx: &mut App) -> bool {
15 matches!(
16 window_appearance(cx),
17 WindowBackgroundAppearance::Transparent | WindowBackgroundAppearance::Blurred
18 )
19}
20