Repository navigation
v0.2.0
Changes since v0.1.2.
API and migration
- Update exhaustive
ColorRolematches to cover the nine new semantic status roles (Info,OnInfo,InfoContainer,Success,OnSuccess,SuccessContainer,Warning,OnWarning, andWarningContainer). - Lower the workspace minimum supported Rust version (
rust-version) from1.99.1to1.95.0and setdefault-features = falseon the workspacegpui-material-componentsdependency so Cargo versions below1.99can evaluate workspace inheritance.
Dependencies
- Allow downstream applications to resolve compatible versions of internal dependencies (
polymorpher,material-color-utils, andserde_jsondev-dependency) at or above the existing minimums while keeping public GPUI/Base and workspace lockstep pins exact.
Modular compilation
- Partition
gpui-material-componentsinto coarse feature groups (actions,selection,inputs,surfaces,feedback, andnavigation, withdefault = ["full"]for backwards compatibility), forward them throughgpui-material, and wire eachgpui-material-extrasfamily to enable only the core groups it uses.
Performance
- Add a repeatable locked Release benchmark suite (
perf_benchingpui-material-gallery) coveringButton,TextField, complex virtualized lists, navigation chrome, and animated indicators while separating GPUI engine baseline, isolated component overhead, standalone story cost, and Gallery shell overhead.
Shapes
- Add the 35-shape Material 3 Expressive
MaterialShapecatalog ingpui-material-themeand reusableShapePolygon,ShapeFit,ShapeMorph, andShapeMorphSequenceadapters ingpui-material-foundation(re-exported fromgpui-material), consolidatingLoadingIndicatoronto Foundation and removing the directpolymorpherdependency fromgpui-material-components. - Add geometric shape clipping (
Shape::clip_path,clip_rect,clip_disc,clip_convex_polygon,exterior_mask, and paint helpers), stroke/shadow painting (fill_path,stroke_path,paint_stroke,paint_shadow), and extended hit testing (hit_test,intersects_bounds). - Extend
Surfacewith.polygon_shape(...),.shape_fit(...),.shape_clip_backdrop(...), and.shape_hit_test(...)for non-rectangular Material shapes, EvenOdd backdrop clipping, and shape-aware pointer hit testing.
Theme and typography
- Add
project_base_themeandcurrent_base_theme(including Material scrollbar and resize-handle tokens), attach a local-theme-aware MaterialDisplayScrollbarrenderer and completeInputEditorStylediagnostics to multilineTextFieldeditors, preserve window-local overrides inThemeScope::bind_action, and avoid unnecessary redraws of locally overridden windows during application palette transitions. - Unify the animation lifecycle in
gpui-material-foundation(animate_with_status,LoopClock,RetargetTransition,is_bounds_visible) so keyed channels use a single GPUI entity, mid-flight interruptions preserve spring velocity or shorten tween reversals proportionally, reduced motion settles immediately, and off-screen, clipped, inactive, or hidden animated components pause without scheduling frames. - Add
ColorScheme::from_seed_withandMaterialTheme::from_seed_withsupporting all sevenDynamicVariantpalettes (TonalSpot,Vibrant,Expressive,Fidelity,Content,Monochrome,Neutral) andSpecVersion(Spec2021andSpec2025), lightweight seed-basedThemePresetrecipes,ColorScheme::blend, and extendedInfo,Success, andWarningsemantic color roles (and theirOn*and*Containerpairs). - Add
Typography::with_text_scale(default1.0, clamped1.0..=2.0) andTypography::style/scale_style, applied across all 15 Material type roles and Base typography projection. - Animate application palette changes in
set_material_themewith a retargetable Slow Effects spring that respects reduced motion, and add subtree-levelThemeScopeandcurrent_material_themewith overlay inheritance that keeps the application Base theme untouched.
Icons
- Add the optional
gpui-material-design-symbolscompanion crate with the full Outlined, Rounded, and Sharp catalog, fill and weight controls, desktop embedding, and asynchronous browser loading.
Windows
- Add optional custom title bars with native Windows caption behavior and a Gallery demonstration.
Contributors
Full Changelog v0.1.2...v0.2.0