Skip to content

Releases

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:33
5014648

Changes since v0.3.1.

Components

  • Prevent ButtonGroupVariant::Connected from borrowing neighbor width on press, and shrink horizontal button padding (down to 4 dp per side) before ellipsizing labels when a fixed-width button is compressed below its preferred width.
  • Blur focused TextField editors on outside clicks (including supporting text and non-focusable areas) and when disabled, keep focus without transient blur when pressing the built-in clear button, and blur focused ExposedDropdown editors on outside dismissal.

Contributors

Full Changelog v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 11:41
95a1563

Changes since v0.3.0.

Theme and foundation

  • Expose Material 3 custom colors and harmonization behind dynamic-color (CustomColorGroup, harmonize_color, ColorScheme::custom_color, and ColorScheme::custom_color_with_contrast).
  • Add ergonomic M3 helpers: Argb::{from_rgba, with_alpha, alpha, red, green, blue}, ColorRole::on_role, ColorScheme::with_color, MaterialTheme::{with_colors, with_typography, with_motion, with_layout, with_density, with_direction}, CornerShape::{uniform, top, bottom, start, end}, and ThemeScope::density.
  • Support Home/End in move_roving_focus (unifying keyboard navigation across NavigationDrawer, Stepper, List, Menu, RadioGroup, ButtonGroup, Toolbar, and FabMenu) and Home/End/PageUp/PageDown in range_semantics for Slider.

Components

  • Add TextField::show_label(bool), density-aware default minimum height with TextField::min_height(Pixels), and TextField::indicator_width(unfocused, focused).
  • Add variant shorthand constructors (filled, tonal, elevated, outlined on ToggleButton; standard, filled, tonal, outlined on IconToggleButton) and controlled .loading(bool) busy state to ToggleButton and IconToggleButton.
  • Add .show_label(bool) and .label_content(...) to Checkbox, Radio, and Switch, and preserve caller-supplied Radio::track_focus(&FocusHandle) handles inside RadioGroup.
  • Add Slider::track_focus(RangeThumb, &FocusHandle) for caller-owned thumb focus handles.
  • Support Backspace/Delete keyboard removal on focused removable Chip actions, and add group-level .tonal(bool), .elevated(bool), and .disabled(bool) defaults to ChipGroup.
  • Add Feed::accessible_label with Role::List semantics and promote Feed to Verified (62/62 documented components verified in CI), alongside standalone SupportingPane::new narrow toggle coverage.
  • Fix NavigationDrawer font scaling (NavigationItems::font_scale), RTL section header/headline alignment, .divider_before(...) across .entries/.section/.push_section, and icon tint inheritance (.inherit_color()).
  • Add List::{accessible_label, item}, ListItem::tone(SemanticTone), desktop secondary click (MouseButton::Right) and contextmenu key triggering for ListItem::on_long_press, caller .track_focus preservation in List and ListSection, .track_focus / .interaction_source across SwitchTile, CheckboxTile, RadioTile, SliderTile, and ChoiceTile, ChoiceTile accessible value description, and .trailing(...) on CheckboxTile and RadioTile.
  • Add Badge::{visible, offset} and scaled-font min_h fix, Card::{content_padding, gap, accessible_label} with rounded child clipping, Text::{align, max_lines, color_override}, public Icon::{inherit_color, color_override}, and DropTarget::{track_focus, interaction_source} with disabled Role::Button preservation, ThemeScope action binding, and dynamic corner radii.

Extras

  • Add SemanticTone support to ButtonGroup, ButtonGroupItem, and SplitButton; fix Toolbar and CaptionButtons focus ring tokens to ColorRole::Secondary; add ToolbarAction::with_icon and overflow menu icons; add SearchView Home/End and input-Down navigation plus SearchState::trigger_focus and SearchBar::track_focus; add TimePicker dialog options, DatePicker/TimePicker::disabled, and DatePickerState/TimePickerState::trigger_focus; add CaptionButtonLabels localization for CaptionButtons and TitleBar.

Overlays and menus

  • Enhance Menu::context() and MaterialElementExt::context_menu(...) to open at the secondary-click cursor position (viewport-clamped, repositioning on subsequent right-clicks), avoid hijacking trigger Enter/Space actions, and support Shift+F10 and ContextMenu keyboard triggers; add lazy builders Menu::new_with and MaterialElementExt::context_menu_with, plus Menu::disabled(bool).
  • Add Sheet::show_header(bool) and apply Sheet::max_width(Pixels) to side sheets as well as bottom sheets (keeping the 400 dp side-sheet default).
  • Add Dialog::confirm_disabled(bool), Dialog::confirm_loading(bool), DialogState::focus_handle(), and DialogState::scroll_handle().
  • Add Snackbar::dismiss_label(...), SnackbarHost::pending_len(), SnackbarHost::clear_queue(cx), and pause timed snackbar auto-dismiss while hovered or focused.
  • Add Tooltip::show_delay(Duration) and Tooltip::hide_delay(Duration) overrides.

Gallery

  • Reorganize the Gallery around top-level Components, Styles, and Examples sections with a grouped Material 3 sidebar catalog, an interactive Overview landing page (hero shapes, live theme preset swatches, interactive controls, and grouped component cards), dedicated Color (with click-to-copy hex swatches), Typography, Shape (with interactive 35-shape inspector), and Motion style reference pages, and a status bar displaying the active theme and package version while keeping existing Story IDs compatible.
  • Redesign all 50 component pages around a Live preview | Specs layout with a local ThemeScope preview canvas, declarative Configuration card (scenarios, controls, and reset), live Rust Code snippet card with copy action, and lazy-loaded full Specs views, plus a live breakpoint badge on the Adaptive layout example page.

Performance

  • Guard no-op state updates against redundant cx.notify() and window.refresh() calls across Foundation theme updates (set_material_theme, set_window_material_theme), Components (PullToRefreshState, SwipeToDismissState, BottomSheetState, Tooltip, ExposedDropdownState, AppBarScrollState), and Extras (SearchScrollState, ToolbarScrollState, ScrollFieldState, DatePickerState, TimePickerState).
  • Virtualize the Gallery component catalog with gpui::list, cache filtered catalog indices on search input changes, and skip no-op navigation and window-move notifications, cutting Gallery shell frame overhead by 58%–75% in the Release perf_bench suite.

Contributors

Full Changelog v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 16:49
c8c0d05

Changes since v0.2.0.

API and migration

  • Breaking: Rename the optional windows-chrome Cargo feature and gpui_material::windows_chrome module to window-chrome and gpui_material::window_chrome across gpui-material-extras, gpui-material, and gpui-material-gallery, and remove the Windows-only compilation gate.
  • Breaking: IconName adds IconName::Visibility and IconName::VisibilityOff. Update exhaustive IconName matches to cover the new variants, or add a fallback arm.

Window chrome and cross-platform defaults

  • Add cross-platform window_chrome support covering Windows native hit testing and Snap Layouts, macOS native traffic-light centering (title_bar_window_options_with_height) and leading inset spacing, and Linux Decorations::Client / Decorations::Server + WindowControls integration.
  • Expand TitleBar and CaptionButtons with customizable .height(...), .title(...), .title_role(...), .title_font(...), .title_font_family(...), .title_font_size(...), .leading(...), .trailing(...), .traffic_light_padding(...), .colors(TitleBarColors), .caption_colors(CaptionButtonColors), .caption_button_width(...), .show_caption_buttons(...), .on_close(...), and .platform(ChromePlatform), replacing hardcoded "Segoe UI" and "Segoe Fluent Icons" with Material theme typography and vector caption icons.
  • Update FontFamilies::default() in gpui-material-theme with cross-platform Latin and CJK fallbacks (SF Pro Text, Segoe UI, Noto Sans, PingFang SC, Microsoft YaHei UI, Noto Sans CJK SC) and enable cargo gallery --window-chrome on all desktop targets.

Components

  • Add ButtonTone (Default, Danger, Success, Warning, Info) semantic shortcuts to Button, ToggleButton, IconButton, and IconToggleButton while preserving per-instance ButtonColors and ButtonBorder precedence.
  • Promote SemanticTone to core (retaining pub type ButtonTone = SemanticTone;) and propagate .tone(SemanticTone) across Badge, Chip, Dialog (.confirm_tone), MenuItem (plus .destructive()), Snackbar, LinearProgress, and CircularProgress; add Badge::{standalone_label, standalone_count, color_role}, Dialog::{alert, on_confirm}, MenuItem::{shortcut, divider}, SnackbarHost::{push_message, replace}, Tooltip::shortcut, variant/typography shorthands on Button, IconButton, Card, Chip, TextField, and Text (including .muted()), and the fluent postfix MaterialElementExt trait (.badge_dot(), .badge_label(...), .badge_count(...), and with feedback: .tooltip(...), .context_menu(...)).
  • Add .track_focus(&FocusHandle) to Chip, Checkbox, Radio, Switch, and Card, preserve ThemeScope in toggle and selection/list/card action callbacks, match disabled label opacity and single-line truncation across Checkbox, Radio, and Switch, clip split Chip primary and removal action feedback along the interior seam, and keep overlapping range Slider thumb selection responsive after zero-delta drag moves.
  • Add core Avatar display component (initials, icon, image with .fallback, custom, AvatarSize, AvatarShape, AvatarColors) and overlapping AvatarGroup stack with uniform sizing, surface-matched cutout rings, +N overflow truncation, RTL mirroring, and summary accessibility labels.
  • Add core presentational EmptyState layout shell with an optional decorative icon container (MaterialShape polygon or CornerShape backdrop) or custom .visual, title, supporting copy/content, centered RTL-aware primary/secondary action slots, and configurable .max_width / .title_role.
  • Add four M3E convenience components without new feature-group dependency edges: in-flow Banner (feedback, with SemanticTone, actions, dismiss, and Role::Status/Role::Alert), controlled ChipGroup (selection, with Single/SingleRequired/Multiple selection, .single_select, wrapping/scrollable layout, and roving focus), core Skeleton (rect/text_line/circle/shape placeholders on LoopClock + is_bounds_visible with zero offscreen/reduced-motion frames), and width-responsive Breadcrumbs (navigation, collapsing middle segments into an anchored Material Menu).
  • Add ButtonGroup::connected, .single_select, and .single_optional_select ergonomics shortcuts to gpui-material-extras (expressive-groups).
  • Add DropTarget (surfaces feature) for external OS file drops (ExternalPaths) and typed in-app GPUI drag payloads with validation feedback and optional click/keyboard activation.
  • Add Stepper (navigation feature) with horizontal and vertical orientations, StepStatus, .active_step, .non_linear, RTL mirroring, and roving keyboard navigation.
  • Add standalone NavigationDrawer (navigation feature) with Standard and Modal (side-sheet) modes, sections, headers, dividers, 56 dp pill indicators, and roving vertical navigation.
  • Add BottomAppBar (navigation feature) with 80 dp Material styling, action and trailing FAB slots, Scaffold::bottom_bar compatibility, and AppBarScrollBehavior / AppBarScrollState hide-on-scroll support.
  • Add settings convenience tiles SwitchTile, CheckboxTile, RadioTile, SliderTile (surfaces + selection), ChoiceTile / ChoiceOption (surfaces + feedback), and ListSection / ListSectionItem (surfaces) with optional LabelMedium section headings, true M3E Segmented grouped corner geometry (16/4, 2 dp gap), and unified vertical roving focus.
  • Add Button::loading(bool) and IconButton::loading(bool) (actions feature, no dependency on feedback) with busy accessibility semantics, activation suppression, resting-width preservation, and an inline Material circular spinner respecting is_bounds_visible and reduced_motion.
  • Bundle official Material Symbols Outlined IconName::Visibility and IconName::VisibilityOff (both fill variants) from the pinned upstream revision.
  • Fix Sheet::expandable drag handle creating an unlabeled keyboard tab stop, delay Tooltip motion sampling until its trigger anchor is measured, prevent SnackbarHost first-frame zero-width layout and bound exiting queue growth under reduced motion, and defer render-time transition notifications across NavigationRail, AdaptiveNavigation, and AdaptivePaneState.

Inputs

  • Add TextFieldObfuscationMode (Hidden, Visible) and TextField::obfuscation_mode(...) for TextField::secure visibility toggles, re-export TextFieldMaskPattern through the inputs feature facade, and add Gallery examples and tests covering password visibility toggling, structured mask patterns, and pre-commit validation.
  • Add TextField::clearable(bool) (.clear_label(...)) and TextField::visibility_toggle(visible, on_toggle) (.visibility_labels(show, hide)) inside the inputs feature without adding a dependency on actions, automatically syncing secure obfuscation mode and preserving focus.
  • Add ExposedDropdown::with_shared_options for O(1) Rc<[DropdownOption]> option sharing, accelerate dropdown filtering with zero-allocation ASCII case-insensitive matching and cached active indices, reserve trailing inset for TextField resting labels when .trailing(...) is present, and cache per-frame character counts.

Performance, theme, foundation, and symbols

  • Store all 61 Material color roles inline in ColorScheme for allocation-free O(1) lookups and blending, expose ColorScheme::baseline, appearance, and color as const fn, and preserve the compact { appearance, overrides } serde format.
  • Cache resolved system and custom Font family descriptors and letter-spaced LineLayout runs in gpui-material-foundation, cache tessellated Shape stroke paths and transparent Surface rounded feedback geometry, prune finished ripples before Escape cancel checks, and expose elevation_shadow_pair for allocation-free canvas shadow painting.
  • Accelerate clipped_ripple with precomputed 64-gon unit-circle normals and inscribed-disk / triangle-AABB fast paths.
  • Add const fn constructors and accessors SymbolAxes::new, SymbolAxes::is_filled, and SymbolAxes::get_weight in gpui-material-design-symbols, and cache outlined SVG bytes by (codepoint, axes) in SymbolFont::svg_data so repeated lookups and alias symbols share a single Arc<[u8]>.
  • Snapshot Menu exit rows lazily, short-circuit AdaptivePaneState history resolution once all three pane roles are assigned, replace per-frame multi-pane geometry Vec allocations with stack arrays, and avoid redundant root layout passes and focus map clones in AdaptiveNavigation, AppBar, Scaffold, and NavigationItems.
  • Binary-search single-line ellipsis truncation in Text, deduplicate ExtendedFab label shaping, reuse cached rounded feedback geometry and stack-allocated elevation_shadow_pair shadows across Button, Chip, Card, ListItem, and selection ripples, add static corner and line-count fast paths in ListItem, reuse active DisplayScrollbar fade wake timers across intermediate scroll frames, predefine const Progress easing curves, and skip redundant SwipeToDismiss width notifications when settled at rest.
  • Optimize gpui-material-extras runtime hot paths: release SearchState result focus handles when returning to idle, replace O(N) search result focus scans with O(1) scope checks, skip redundant SearchView and DatePicker state updates when idle, cache monthly calendar day IDs and accessible labels alongside static day, two-digit, and dial-mark tables, reuse active ScrollField settle timers across rapid scroll events, precompute contained Carousel keylines once per layout and share measured layouts without extra next-frame re-renders, skip zero-radius CarouselParallax corner paths, preserve ButtonGroup focus handles and cached labe...
Read more

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 04:41
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

v0.1.2

Choose a tag to compare

@wangdiandao wangdiandao released this 20 Nov 12:37
2ae8799

Changes since v0.1.1.

Dependencies

  • Allow downstream applications to resolve compatible versions of serde, web-time, and windows at or above the existing minimums.

Feedback

  • Skip fill triangles outside the Ripple bounds before clipping.
  • Refresh the owning view when control feedback changes and skip redraws on redundant release or cancel events.

Text

  • Reuse single-line ellipsis layouts for repeated text and widths.

Gallery

  • Show Material type roles and compare emphasis, font scaling, wrapping, and truncation in the Text story.
  • Capture active frame timing in a single Gallery window with the optional frame profiler.

Contributors

Full Changelog v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@wangdiandao wangdiandao released this 16 Nov 08:47
2911e3d

Changes since v0.1.0.

API and dependency migration

  • Match direct Base imports to 0.10.0 and retain GPUI 0.3.12.
  • Add exhaustive-match arms for AppBarVariant::TwoRows, DatePickerVariant::FullScreen, SearchViewVariant::FullScreenContained, and TimePickerVariant::Scroll.
  • Changed keyboard and accessibility slider adjustments now emit Change followed by Release. Update subscribers that interpreted Release as pointer-only.

Components

  • Use retained bottom-sheet stops, configurable drag and keyboard actions, and a measured Standard sheet slot in Scaffold.
  • Compose standalone dial, text input, and wrapping time wheels or combine them with configurable standard and vibrant time picker dialogs.
  • Customize adaptive navigation types, animated visibility, and the bar or rail layout while keeping destination selection and focus across width changes.
  • Compose date pickers with customizable anchors, panels, dialog actions and state colors. Control the displayed month, partial range, display mode, and year availability.
  • Compose Contained and Docked search with configurable editor slots, grouped virtual results, motion, appearance, and scroll behavior.
  • Compose tabs with leading icons, custom content and badges, configurable indicators and dividers, and external scroll handles.
  • Control Navigation Rail transitions and configure destination content, indicator padding, rail layout, and modal appearance and dismissal.
  • Customize docked and detached side sheets with independent header and footer slots, typed dismissal, and per-instance appearance.
  • Compose docked and floating toolbars with editable content, independently expandable slots, instance appearance, and retained scroll and settling behavior.
  • Add Pull to Refresh for scrollable content with a controlled refresh request, gesture thresholds, and a replaceable Material loading indicator.
  • Control FAB menu expansion and configure trigger animation, item content, palettes, and logical alignment.
  • Compose adaptive layouts with up to three panes, resizable anchored separators, reflow and levitation, and retained transitions and navigation history.
  • Compose dialog slots or a custom modal shell, configure instance appearance and dismissal, observe close reasons, and open optional native dialog windows.
  • Center short navigation bar destinations, mix icon positions, add custom labels and badges, and customize colors and observe interactions per item.
  • Customize mixed Button Group members, Connected segment shapes, weighted layout and press expansion, and controlled overflow.
  • Use text-only and custom-content Extended FABs with controlled expansion, visibility motion, and per-instance appearance and interaction observation.
  • Compose Standard and Segmented lists with custom row slots, checked and expandable rows, long-press actions, swipe dismissal, and per-state appearance.
  • Attach Material Labels with custom content and caller-controlled persistent or shared interaction visibility.
  • Compose custom clickable, selectable and checked Surfaces with inherited content colors, explicit shape and border, and configurable interaction feedback.
  • Compose exposed dropdowns with custom editors, anchors and options, caller-controlled visibility, and configurable popup size, scroll state and appearance.
  • Add display-only scrollbars with per-axis viewport tracking, custom geometry and colors, and configurable fading.
  • Customize both Split Button segments and use a menu, independent command, or controlled toggle for the trailing segment.
  • Configure carousel layout and fling behavior, read and control the retained item position, and apply standalone scroll parallax to custom content.
  • Customize Snackbar content, controls, layout, and appearance, and observe action or dismissal results from the queue.
  • Add customizable TwoRows app bars, logical multiline headings and logo slots, retained scroll strategies, and responsive app bar action rows and columns.
  • Compose Chips with custom content and Input avatars, apply Expressive Tonal presets and per-state appearance, and observe their interactions.
  • Reverse vertical sliders and customize tracks, individual handles, colors, markers, value indicators, and interaction observation.
  • Customize linear and circular progress strokes, gaps, and wave motion, and resize or replace the linear stop marker.
  • Customize Card shape, border, colors, and per-state elevation, and observe shared interactions.
  • Customize Checkbox state colors and the mark and outline strokes, and observe interaction through a shared source.
  • Customize selected, unselected, and disabled radio indicator colors and observe shared radio interactions.
  • Supply measured progress, custom morph shapes, and instance colors and container corners for Loading Indicators.
  • Position Scaffold FABs at the start, center, end, or over the bottom bar. Resolve content insets against measured bars and rail space.
  • Set divider thickness and color for each horizontal or vertical rule. A zero thickness selects a one-device-pixel hairline.
  • Compose text fields with configurable label placement, leading and trailing elements, value affixes, custom hints and supporting content, and required, invalid, and character count presentation.
  • Observe Button and ToggleButton interaction changes through an optional shared interaction source.
  • Customize IconButton and IconToggleButton shapes, colors, and outlines, and observe their interactions through a shared source.
  • Set text-field colors, shape, content padding and input typography per instance, observe the Base editor's laid-out geometry, and share field interaction state.
  • Customize Button and ToggleButton content, shapes, colors, borders, padding, and elevations per instance.
  • Render standalone and anchored badges with custom content and per-instance colors.
  • Select values with the standalone date-time scroll field, with caller-owned selection, custom rows, and accessible value descriptions.
  • Compose a standalone Scrim with window-theme or custom color, adjustable opacity, and optional accessible dismissal.
  • Customize FAB appearance and observe its interactions. Control FAB visibility with a logical scale pivot and independent scale and opacity motion.
  • Add SwipeToDismiss for caller-owned content with horizontal gestures, logical direction, and accessible dismissal commands.
  • Add the vertical drag handle with per-state appearance, shared interactions, and caller-controlled pane resizing.
  • Show persistent rich tooltips with caller-owned visibility and customizable focus, content, placement, caret and appearance.
  • Customize switch thumb content and individual state colors, and observe switch interactions through a shared source.

Gallery

  • The GPUI Material Gallery uses the project logo as its Windows application icon.

Menus

  • Add the Vibrant menu palette, styled groups and rows, custom popup content, positioning and an external scroll handle.
  • Control menu visibility from application state, handle dismissal requests, and customize menu-item content while retaining keyboard navigation and accessible item names.

Distribution

  • The Gallery now ships as source. Run cargo gallery from a checkout.
  • Use GPUI Kit's Base 0.10.0 with its paired GPUI 0.3.12 snapshot. Downstream apps that import Base directly must match the new Base pin. The Base slider handles Windows UI Automation RangeValue SetValue.

Contributors

Full Changelog v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@wangdiandao wangdiandao released this 15 Nov 09:47
0aecc09

Changes since v0.0.4.

Breaking changes

  • IconName adds DarkMode, LightMode, LeftPanelClose, and LeftPanelOpen. Handle the new variants in exhaustive matches, or add a fallback if they can share the same behavior. #221

Gallery and components

  • Reuse the Material Gallery catalog or a single interactive story from the source checkout in another GPUI host, including WebAssembly builds. #238
  • Browse component previews with a searchable catalog and a dedicated compact-window layout. The Gallery app bar provides theme controls and opens the project repository. #227
  • Keep the docked search button fully visible in a vertical toolbar and align carousel scrolling with the painted positions at the trailing edge. #221, #227
  • Keep exposed dropdown interactions inside their visible hit areas. Opening from the trailing control, selecting an option, and dismissing outside the menu follow their respective pointer paths. #233

Search and text fields

  • Virtualize large search result and dropdown option lists while preserving item identity, keyboard navigation, and focus. Refresh measured rows when fonts change. #229
  • Apply the Material window palette to Base-backed editors in that window while preserving the app-level Base theme. #229
  • Hide the caret in selection-only dropdowns while retaining keyboard focus. #227

Motion

  • Apply the target value immediately when custom spring stiffness cannot produce a valid duration. #227

Integration and distribution

  • Install the Material facade from crates.io with gpui-material = "0.1.0". The facade continues to expose the same GPUI and Base package types.
  • Document the supported facade, optional features, and migration from the 0.0.4 source checkout. Virtualized lists can track caller-owned row focus through ListItem::track_focus. #215, #229
  • Package the Windows x64 Gallery as a standalone ZIP with a SHA-256 checksum, locked runtime dependency inventory, and bundled licenses. #216, #217

Contributors

Full Changelog v0.0.4...v0.1.0

Material Gallery 0.0.4 Candidate

Pre-release

Choose a tag to compare

@wangdiandao wangdiandao released this 14 Nov 15:52
08120f4

Windows x64 candidate for P8. Gallery adds button groups and split buttons, FAB menus and toolbars, docked and full-screen search, date and time pickers, and six carousel layouts. Applications can enable each component family independently through the Material facade.

Extract the ZIP and run gpui-material-gallery.exe. The archive contains the license and third-party notices. SHA256SUMS.txt records the ZIP checksum.

Windows acceptance · Candidate build and three-platform CI · P8 freeze

Material Gallery 0.0.3 Preview

Pre-release

Choose a tag to compare

@wangdiandao wangdiandao released this 14 Nov 14:18
3856a70

This Windows x64 preview fixes a brief overlap between the top border and the floating label when an empty outlined text field gains or loses focus. The border now clears the label throughout the animation, including in right-to-left layouts.

Download and extract the Windows x64 ZIP, then run gpui-material-gallery.exe. To try the fix, open the Text field story, clear Email, then click outside and back into the field. The ZIP includes the license and third-party notices. SHA256SUMS.txt contains the archive checksum.

Text field fix · Windows build and three-platform CI

Material Gallery 0.0.2 Preview

Pre-release

Choose a tag to compare

@wangdiandao wangdiandao released this 14 Nov 13:10
47b5644

Material Gallery 0.0.2 adds Material 3 tabs, top app bars, the short navigation bar, and navigation rail. The adaptive layout story demonstrates Scaffold, Bar/Rail transitions, list-detail, supporting pane, and feed. Resize the window to exercise navigation and pane changes.

Download and extract the Windows x64 ZIP, then run gpui-material-gallery.exe. The download includes the license and third-party notices. Other platforms passed hosted builds and automated tests.

Windows validation · Release build