longbridge/gpui-component
 Watch   
 Star   
 Fork   
7 days ago
gpui-component

v0.3.1

What's Changed

Input

Editor

List

Tiles

Theme

Example

Others

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v0.3.0...v0.3.1

10 days ago
gpui-component

v0.3.0

New features

  • menu: Add AppMenuBar. by @huacnlee in #1338

    image
  • tree: Add Tree by @huacnlee in #1373

    image

Button

  • button: Add support for on_hover event by @madcodelife in #1341
  • button: Fix the on_hover does not respond by @madcodelife in #1346
  • button: Support specified anchor to dropdown button by @madcodelife in #1367

Checkbox

  • checkbox: Do not stop propagation when click by @madcodelife in #1385

Dropdown

  • dropdown: Use display_title for item title if present by @stippi in #1410

Editor

  • editor: Fix code actions not display by @huacnlee in #1347
  • editor: Add delay to trigger hover popover by @huacnlee in #1361
  • editor: Improve hover popover delay by @huacnlee in #1389

Highlighter

  • highlighter: Make SyntaxHighlighter::styles method public for external use by @huacnlee in #1415

Input

  • input: impl Selectable for TextInput that allow it as trigger for popover by @richerfu in #1353
  • input: Fix set_value when Input is disabled by @huacnlee in #1362
  • input: Grouping input history to avoid IME placeholder by @huacnlee in #1375
  • input: Fix Input panics when masked have non-ASCII characters by @huacnlee in #1382
  • input: Stop propagation on scroll wheel by @huacnlee in #1406
  • input: Hide scrollbar when not overflow in auto grow mode by @huacnlee in #1407
  • input: Fix Input to prepare text wrapper by @huacnlee in #1417

Markdown

  • markdown: Use list for Markdown render and add scrollbar by @huacnlee in #1357

Menu

  • menu: Fix submenu item selection when multiple submenus exist by @ihavecoke in #1342
  • menu: Fix trigger action with context by @huacnlee in #1372

Plot

  • plot: Add StepAfter kind to StokeStrike by @itsmgo in #1356
  • plot: Add stroke style per each Y series by @itsmgo in #1364
  • plot(line_chart): Add missing natural stroke style by @madcodelife in #1366

Scrollbar

  • scrollbar: Fix scroll to show mode by @huacnlee in #1381
  • scrollbar: Update scrollbar background color to transparent for all themes by @huacnlee #1421

VirtualList

  • virtual_list: Fix VirtualList to limit only allow 1 direction scrollable by @huacnlee in #1386
  • virtual_list: Fix VirtualList by measure item to get correct content_size to avoid scroll overflow by @huacnlee in #1388

Docs

Documentation website is online: https://longbridge.github.io/gpui-component

Others

  • chore: Update GPUI v0.2.2 by @huacnlee in #1416

New Contributors

  • @richerfu made their first contribution in #1353
  • @itsmgo made their first contribution in #1356
  • @han1548772930 made their first contribution in #1370
  • @YougLin-dev made their first contribution in #1398
  • @vincenthz made their first contribution in #1404
  • @stippi made their first contribution in #1410
25 days ago
gpui-component

v0.2.0

🚀 First release version to crates.io.

Improvements

  • Refactor tab key to switch focus by @huacnlee (#991)

Input & Text

  • Disable context menu item for disabled input by @huacnlee (#1280)
  • Use shape line for soft wrap lines by @huacnlee (#1293)
  • Fix RopeExt replace method may not on a char boundary by @huacnlee (#1295)
  • Update RopeExt to use LF style for line calc when \r present by @huacnlee (#1296)
  • Fix Input to unselect on blur by @huacnlee (#1303)
  • Avoid scroll on select all by @huacnlee (#1305)
  • Clean to reset selection and scroll offset by @huacnlee (#1326)
  • Implement styled for number input by @madcodelife (#1333)

Editor

  • Add document_colors LSP by @huacnlee (#1329)
  • Add to support move vertical for soft wrapped lines by @huacnlee (#1312)
  • Avoid trigger hover on selection by @huacnlee (#1287)
  • Improve slice_line method performance by @huacnlee (#1290)
  • Improve TextWrapper performance by @huacnlee (#1292)
  • Improve line number width by max lines by @huacnlee (#1291)
  • Improve enter indent level performance by @huacnlee (#1304)
  • Fix hover definition to hide immediately by @huacnlee (#1309)
  • Fix Editor crash when content is empty by @huacnlee (#1314)
  • Split Input and Editor background color by @huacnlee (#1323)

TextView & Highlight

  • Refactor TextView/SyntaxHighlighter with async parsing to improve performance by @sunli829 (#1299)
  • Support custom code block style by @huacnlee (#1288)

Theme & Style

  • Fix Ayu theme comment color by @huacnlee (#1316)
  • Update macos-classic dark theme color by @huacnlee (#1320)
  • Update theme schema: remove card, add group_box by @huacnlee (#1321)
  • Fix button label overflow by @huacnlee (#1322)
  • Bind element ID after button creation by @madcodelife (#1325)
  • Let normal/active tabs share border to prevent flash by @huacnlee (#1327)

Menu & Context

  • Better handle hover for menu item by @huacnlee (#1332)
  • Add flex property to custom popup menu items by @ihavecoke (#1335)
  • Improve MenuItem paddings by @huacnlee (#1339)

Bug Fixes

  • Fix input mark text render by @huacnlee (#1298)
  • Fix Editor crash when empty string triggers placeholder by @huacnlee (#1314)
  • Fix context menu subscription leak by @huacnlee (#1337)
  • Fix UTF-8 boundary in highlighter using clip_offset by @xudesheng (#1317)

Chores & Internal

  • use async-wry by @sunli829 (#1300)
  • Remove unnecessary RefCell by @sunli829 (#1301)
  • Remove Wef code (moved to external crate) by @Copilot (#1302)
  • Interpolate folder path via rust embed by @carlocorradini (#1318)
  • Implement styled for custom style by @madcodelife (#1319)

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v20250925...v0.2.0

2025-09-25 11:12:56
gpui-component

v20250925

Improvements

Input & Editor

We have improve the text editor to as a code editor, use tree-sitter and ropey to improve the performance and add more features.

  • editor: Improve syntax highlighter and editing performance, now we can handle more than 150K lines file. by @huacnlee in #1208, #1284, #1230, #1237
  • editor: Add to support code completion and code actions. by @huacnlee in #1242
  • editor: Add to support hover popover. by @huacnlee in #1260
  • editor: Add hover definition and go to definition. by @huacnlee in #1261
  • editor: Add to support search and replace. by @huacnlee in #1252
  • input: Add context menu for cut, copy, paste. by @huacnlee in #1279
  • input: A lot of bug fixes and improvements for editing exprience. by @huacnlee in #1277, #1256, #1264, #1246, #1238, #1211

Theme & Style

Highlighter

Slider

Inspector

Chart

GroupBox

Bug Fixes

Other Changes

🌱 New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v20250611...v20250925

2025-06-11 16:52:51
gpui-component

v20250611

Release Notes

🚀 Features


🛠 Improvements

Dock & Layout

Input

NumberInput

UI & UX


🐞 Bug Fixes


🧹 Maintenance & Documentation


🌱 New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v20250502...v20250611

2025-05-02 10:28:26
gpui-component

v20250502

What's Changed

Components

Input

  • Improve clear button position. #782
  • Add Esc key to clear input. #803
  • Fix Esc to propagate to parent element. #806
  • Update text method to return &SharedString type. #800
  • Clean focused_input on blur. #825
  • Refactor window.focused_input for better update. #809
  • Add Copy and Eq derives for StepAction. #812

Checkbox

  • Support sizable. #781
  • Make checked icon sizable. #785

Tooltip

  • Add KeyBinding to Tooltip and Button. #783
  • Add action, key_binding methods. #787

Modal

  • Respond confirm events only when on_ok or footer present. #786
  • Fix resetting focused_input when modal or drawer is closed. #807
  • Add alert method to create modal with OK button. #829

Sidebar

  • Add suffix for menu item. #792
  • Better active menu background. #793

Table

  • Add secondary click example. #780
  • Ensure row selection with prev/next. #805
  • Fix render_tr to apply h_flex. #810
  • Disable auto-scroll when resizing beyond right bound. #811

Dropdown

  • Avoid selected value text wrap. #808
  • Add display_title to support custom input title. #816
  • Support dynamic options update. #824

List

  • Export query_input to allow external updates. #794
  • Auto-select first item on search. #798

SvgImg

  • Fix memory leak. #818
  • Refactor to avoid size assignment & fix image drop error. #821
  • Avoid global image loader usage. #823
  • Fix first-load image issue. #828

Accordion

  • Add gap between title and icon. #813

Kbd

  • Fix key ordering and Windows compatibility. #788

DescriptionList

  • Wrap description value if too long. #779

Other UI

  • Use default cursor for disabled menu/button/dropdown, etc. #814
  • Improve Switch and Sidebar selected background color. #801

Storybook & Gallery

  • Redesign the gallery. #797
  • Add story search. #802
  • Add ClipboardStory. #799
  • Add DatePicker and Calendar. #815
  • Fix error panel display with search keywords. #817
  • Update Windows gallery download. #804
2025-04-03 21:17:17
gpui-component

v20250407

What's Changed

Tab

TextView

Scrollbar

Dock

Toggle

Icon

Menu

Kbd

Tag

TitleBar

Tiles

Input

Switch

Button

Modal

DropdownButton

DescriptionList

Calendar

Alert

Sidebar

SvgImg

Label

Checkbox

List

History

Title Bar

Theme

Accordion

I18n

Miscellaneous

Example

New Contributors

Full Changelog: https://github.com/longbridge/gpui-component/compare/v20250228...v20250407

2025-02-28 18:53:25
gpui-component

v20250228

What's Changed

New Features

Dock & Tiles

Style & Theming

Modal

Sidebar

WebView

Other

2025-02-07 10:22:29
gpui-component

v20250207

🎉 Upgrade GPUI to 3, this release by use tag for mark a stable version.

What's Changed

Full Changelog: https://github.com/longbridge/gpui-component/compare/v20250127...v20250207

2025-01-27 03:54:06
gpui-component

v20250127

  • Older version based on GPUI 2.