19 lines · 603 B · Rust
RawDownload
use crate::prelude::*;use gpui::{App, WindowBackgroundAppearance}; /// Returns the [WindowBackgroundAppearance].fn window_appearance(cx: &mut App) -> WindowBackgroundAppearance {    cx.theme().styles.window_background_appearance} /// Returns if the window and it's surfaces are expected/// to be transparent.////// Helps determine if you need to take extra steps to prevent/// transparent backgrounds.pub fn theme_is_transparent(cx: &mut App) -> bool {    matches!(        window_appearance(cx),        WindowBackgroundAppearance::Transparent | WindowBackgroundAppearance::Blurred    )}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t