gpui_material_foundation/
lib.rs1#![warn(missing_docs)]
3#![deny(rustdoc::broken_intra_doc_links)]
4
5mod root;
6mod surface;
7mod theme_scope;
8mod typography;
9
10pub use root::{
11 MaterialRoot, material_theme, project_base_theme, set_material_theme,
12 set_window_material_theme, window_material_theme,
13};
14pub use surface::{
15 Surface, SurfaceBorder, SurfaceFeedback, color, elevation_shadow_pair, elevation_shadows,
16 resolve_color_spec, resolve_edges, scrim_color,
17};
18pub use theme_scope::{ThemeScope, current_base_theme, current_material_theme};
19#[doc(hidden)]
20pub use typography::font_cache_revision;
21pub use typography::{ShapedText, font_for_style, shape_text, text_style, wrapped_text};
22
23pub mod control_feedback;
24mod feedback;
25mod motion;
26mod shape;
27
28pub use feedback::{
29 FOCUS_RING_OUTER_OFFSET, FOCUS_RING_WIDTH, FocusRingPlacement, InteractionFeedback,
30 InteractionState, Ripple,
31};
32pub use gpui_material_theme::MaterialShape;
33pub use motion::{
34 LoopClock, MotionSample, MotionStatus, OverlayMotion, RetargetTransition, ScaledOverlay,
35 animate, animate_with_status, is_bounds_visible, sanitize_overlay_scale,
36};
37pub use shape::{PolygonMorph, Shape, ShapeFit, ShapeMorph, ShapeMorphSequence, ShapePolygon};
38
39mod input;
40mod interaction;
41mod overlay;
42mod range;
43
44pub use input::{DragCapture, move_roving_focus};
45pub use interaction::{InteractionSource, InteractionTracker, InteractionUpdate};
46pub use overlay::{Scrim, isolated_scroll, logical_anchor};
47pub use range::{RangeThumb, range_semantics, value_label};
48pub use web_time::Instant;
49
50#[cfg(feature = "test-support")]
51pub mod test;