1//! UI-related utilities
2
3use gpui::App;
4use theme::ActiveTheme;
5
6mod color_contrast;
7mod corner_solver;
8mod format_distance;
9mod search_input;
10mod with_rem_size;
11
12pub use color_contrast::*;
13pub use corner_solver::{CornerSolver, inner_corner_radius};
14pub use format_distance::*;
15pub use search_input::*;
16pub use with_rem_size::*;
17
18/// Returns true if the current theme is light or vibrant light.
19pub fn is_light(cx: &mut App) -> bool {
20 cx.theme().appearance.is_light()
21}