Files
zed/crates/ui/src/utils.rs
Smit Barmase e15856a37f Move APCA contrast from terminal_view to ui utils (#36731)
In prep for using this in the editor search/select highlighting. 

Release Notes:

- N/A
2025-08-22 10:17:37 +05:30

24 lines
520 B
Rust

//! UI-related utilities
use gpui::App;
use theme::ActiveTheme;
mod apca_contrast;
mod color_contrast;
mod corner_solver;
mod format_distance;
mod search_input;
mod with_rem_size;
pub use apca_contrast::*;
pub use color_contrast::*;
pub use corner_solver::{CornerSolver, inner_corner_radius};
pub use format_distance::*;
pub use search_input::*;
pub use with_rem_size::*;
/// Returns true if the current theme is light or vibrant light.
pub fn is_light(cx: &mut App) -> bool {
cx.theme().appearance.is_light()
}