Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 04:41
· 56 commits to main since this release
e29fb41

Changes since v0.1.2.

API and migration

  • Update exhaustive ColorRole matches to cover the nine new semantic status roles (Info, OnInfo, InfoContainer, Success, OnSuccess, SuccessContainer, Warning, OnWarning, and WarningContainer).
  • Lower the workspace minimum supported Rust version (rust-version) from 1.99.1 to 1.95.0 and set default-features = false on the workspace gpui-material-components dependency so Cargo versions below 1.99 can evaluate workspace inheritance.

Dependencies

  • Allow downstream applications to resolve compatible versions of internal dependencies (polymorpher, material-color-utils, and serde_json dev-dependency) at or above the existing minimums while keeping public GPUI/Base and workspace lockstep pins exact.

Modular compilation

  • Partition gpui-material-components into coarse feature groups (actions, selection, inputs, surfaces, feedback, and navigation, with default = ["full"] for backwards compatibility), forward them through gpui-material, and wire each gpui-material-extras family to enable only the core groups it uses.

Performance

  • Add a repeatable locked Release benchmark suite (perf_bench in gpui-material-gallery) covering Button, 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 MaterialShape catalog in gpui-material-theme and reusable ShapePolygon, ShapeFit, ShapeMorph, and ShapeMorphSequence adapters in gpui-material-foundation (re-exported from gpui-material), consolidating LoadingIndicator onto Foundation and removing the direct polymorpher dependency from gpui-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 Surface with .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_theme and current_base_theme (including Material scrollbar and resize-handle tokens), attach a local-theme-aware Material DisplayScrollbar renderer and complete InputEditorStyle diagnostics to multiline TextField editors, preserve window-local overrides in ThemeScope::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_with and MaterialTheme::from_seed_with supporting all seven DynamicVariant palettes (TonalSpot, Vibrant, Expressive, Fidelity, Content, Monochrome, Neutral) and SpecVersion (Spec2021 and Spec2025), lightweight seed-based ThemePreset recipes, ColorScheme::blend, and extended Info, Success, and Warning semantic color roles (and their On* and *Container pairs).
  • Add Typography::with_text_scale (default 1.0, clamped 1.0..=2.0) and Typography::style / scale_style, applied across all 15 Material type roles and Base typography projection.
  • Animate application palette changes in set_material_theme with a retargetable Slow Effects spring that respects reduced motion, and add subtree-level ThemeScope and current_material_theme with overlay inheritance that keeps the application Base theme untouched.

Icons

  • Add the optional gpui-material-design-symbols companion 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