Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T04:45:13.803Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

appearance.rs

20 lines · 603 B · rust
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
Served at tenant.openagents/omega Member data and write actions are omitted.