v0.4.1

longbridge/gpui-kitv0.4.1Nov 20, 2025by huacnlee

AI Summary

A feature release with improvements across Button, Chart, Dock, DropdownButton, Editor, Icon, Input, List, Menu, Notification, NumberInput, Resizable, Root, Select, Sidebar, Slider, Table, Theme, and Tiles components.

Key Highlights

  • Added dropdown_caret option to Button
  • Added stroke color support for LineChart
  • Panel tracking for Dock
  • Icon rework with IconNamed trait
  • Sidebar disable state support

New Features

  • Button: Add dropdown_caret option to show caret icon
  • Chart: Add support to set stroke color on LineChart
  • Dock: Don't close tab via action when it can't be closed via context menu
  • Dock: Add way for Panels to track tab bar they belong to
  • DropdownButton: Add more button option methods
  • Editor: Fix may crash on render indent guides
  • Icon: Rework icons to make use of IconNamed trait
  • Input: Avoid blocking vertical scroll events in single-line mode
  • Input: Fix x offset resetting for single line inputs
  • List: Fix incorrect selected item background color
  • Menu: Fix icon width to tidy indent in PopupMenuItem
  • Notification: Fix close animation not working when closed from content
  • NumberInput: Improve style details
  • NumberInput: Use input border on the buttons
  • Resizable: Improve to avoid panels from improperly resizing on container resizing
  • Resizable, Dock: Improve Panel adjust size logic on layout changed
  • Root: Improve new method argument to use into<AnyView>
  • Select: Add render prop to customize item title display
  • Sidebar: Improve to allow caret icon to expand submenu
  • Sidebar: Add disable state support
  • Slider: Remove thumb tooltip
  • Table: Split TableState to state.rs
  • Table: Use click event instead of mouse down event
  • Theme: Use font_family for all elements
  • Theme: Fix Flexoki Light focus color
  • Tiles: Add auto-snap support for tiles panel to top and left edges

Full Release Notes

## Button
- button: Add `dropdown_caret` option to show a caret icon to end of button. by @huacnlee in #1637

## Chart
- chart: Add support to set stroke color on LineChart by @madcodelife in #1629

## Dock
- dock: Don't close tab via action when it can't be closed via context menu by @CherryWorm in #1581
- dock: Add a way for Panels to track the tab bar they belong to by @CherryWorm in #1580

## DropdownButton

- dropdown_button: Add more button option methods to DropdownButton. by @huacnlee in #1633

## Editor
- editor: Fix may crash on render indent guides. by @huacnlee in #1619

## Icon
- icon: Rework icons to make use of the `IconNamed` trait by @andreaskrath in #1640

## Input
- input: Avoid blocking vertical scroll events in single-line mode (#1562) by @chulingera2025 in #1572
- input: Fix x offset resetting for single line inputs by @zanmato in #1591

## List
- list: Fix incorrect selected item background color by @madcodelife in #1648

## Menu
- menu: Fix icon width to tidy indent in `PopupMenuItem`. by @madcodelife in #1620

## Notification
- notification: Fix close animation not working when closed from content by @Moulberry in #1578

## NumberInput
- number_input: Improve style details by @madcodelife in #1606
- number_input: Use input border on the buttons by @madcodelife in #1634

## Resizable
- resizable: Improve to avoid panels from improperly resizing on container resizing. by @CherryWorm in #1560

## Resizable & Dock
- resizable, dock: Improve Panel adjust size logic on layout changed. by @CherryWorm in #1588

## Root
- root: Improve `new` method argument to use `into <AnyView>`. by @huacnlee in #1594

## Select
- select: Add `render` prop to customize item title display. by @obito-t in #1638

## Sidebar
- sidebar: Improve Sidebar to allows caret icon to expand submenu. by @huacnlee in #1642
- sidebar: Add to support disable state to sidebar item. by @adriano-tumino in #1645

## Slider
- slider: Remove thumb tooltip by @CherryWorm in #1582

## Table
- table: Split TableState to state.rs by @huacnlee in #1599
- table: Use click event instead of mouse down event by @madcodelife in #1622

## Theme
- theme: Use `font_family` for all elements. by @huacnlee in #1618
- theme: Fix `Flexoki Light` focus color. by @huacnlee in #1647

## Tiles
- tiles: Add auto-snap support for tiles panel to top and left edges by @ihavecoke in #1577

## New Contributors 

* @chulingera2025 made their first contribution in https://github.com/longbridge/gpui-component/pull/1572 
* @zanmato made their first contribution in https://github.com/longbridge/gpui-component/pull/1591 
* @adriano-tumino made their first contribution in https://github.com/longbridge/gpui-component/pull/1645 
* @andreaskrath made their first contribution in https://github.com/longbridge/gpui-component/pull/1640 

**Full Changelog**: https://github.com/longbridge/gpui-component/compare/v0.4.0...v0.4.1