mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 22:43:18 +00:00
Release Notes: - Added agent panel restoration. Now restarting your editor won't cause your thread to be forgotten. --------- Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Co-authored-by: Eric Holk <eric@zed.dev> Co-authored-by: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Co-authored-by: Anthony Eid <anthony@zed.dev> Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com> Co-authored-by: Cameron Mcloughlin <cameron.studdstreet@gmail.com>
25 lines
557 B
Rust
25 lines
557 B
Rust
//! UI-related utilities
|
|
|
|
use gpui::App;
|
|
use theme::ActiveTheme;
|
|
|
|
mod apca_contrast;
|
|
mod color_contrast;
|
|
mod constants;
|
|
mod corner_solver;
|
|
mod format_distance;
|
|
mod search_input;
|
|
mod with_rem_size;
|
|
|
|
pub use apca_contrast::*;
|
|
pub use color_contrast::*;
|
|
pub use constants::*;
|
|
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()
|
|
}
|