Commit Graph

1487 Commits

Author SHA1 Message Date
Floyd Wang d00ee66ea3 Done MVP 2026-01-28 16:02:30 +08:00
Jason Lee 2a3c297d76 focus_trap: Add to support focus_trap. (#1977)
https://github.com/user-attachments/assets/fc0b992e-4b7b-4315-98de-df21a42029f7
2026-01-28 03:15:46 +00:00
Ylin 3522e0deed input: Fix custom text_view_style not working (#1975) 2026-01-27 15:21:22 +08:00
Iain fa110ebf04 input: Fix clear button showing in disabled state (#1973)
## Description

Hide clear button when the input is disabled.

## Screenshot

| Before                       | After                       |
| ---------------------------- | --------------------------- |
| <img width="341" height="327" alt="image"
src="https://github.com/user-attachments/assets/0d3377ed-32ff-41f9-ae68-fbff5af8b26c"
/> | <img width="360" height="338" alt="image"
src="https://github.com/user-attachments/assets/48f1b9c1-1210-4861-998c-476389ccd44f"
/> |

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [x] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [ ] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)
2026-01-26 13:51:20 +00:00
Jason Lee 35f55766f7 context_menu: Fix context menu shadow. (#1874)
Closes #1860

| Before |  After |
| --- | --- |
| <img width="402" height="337" alt="image"
src="https://github.com/user-attachments/assets/2c54af02-5519-48e2-8aab-d3472ab5d1f8"
/> | <img width="416" height="330" alt="image"
src="https://github.com/user-attachments/assets/eb49275d-2807-46a7-8b70-e18344a54664"
/> |
2026-01-24 14:10:16 +08:00
fhluo 6e5bd33028 select: Fix perform_search to call SelectItem::matches (#1968)
Previously, `SearchableVec::perform_search` used hardcoded title
matching, which prevented users from implementing custom search logic.
2026-01-23 13:33:09 +08:00
Floyd Wang 46c5cf6dfa root: Implement styled (#1965)
Closes #1964
2026-01-21 06:28:28 +00:00
Floyd Wang f8f1ec8a98 popover: Use mouse down events to dismiss (#1962)
Closes #1961
2026-01-20 13:53:28 +08:00
Jason Lee 64ef2a69fd popover: Refactor center Popover position. (#1956)
Closes #1951
2026-01-17 10:14:21 +08:00
Floyd Wang a5529f6639 table: Add support for data dump (#1942) 2026-01-16 16:32:58 +08:00
Floyd Wang 2f34808dfb scrollable: Fix the container specified size possibly not working (#1954)
Continue #1921.
2026-01-16 16:05:52 +08:00
Floyd Wang f66d17e2b2 input: Fix push history may not be on a char boundary (#1953) 2026-01-16 14:07:33 +08:00
Floyd Wang 733cff2a69 plot: Fix point scale range not working (#1952) 2026-01-16 04:08:32 +00:00
Floyd Wang 6b7ff0b9c0 progress: Fix incorrect border radius of inner bar (#1950)
| Before | After |
| - | - |
| <img width="972" height="769" alt="SCR-20260116-jdxv-2"
src="https://github.com/user-attachments/assets/0bbb0e8b-fecf-4189-951d-9c692ae40fc3"
/> | <img width="969" height="755" alt="SCR-20260116-jdpc"
src="https://github.com/user-attachments/assets/f60857ce-e80f-4894-942a-449b77409e90"
/> |
2026-01-16 02:05:18 +00:00
fhluo 0891c81cbf theme: Fix theme sorting (#1948)
## Description

Derive `Ord` for `ThemeMode` and include mode in the sorting logic of
`ThemeRegistry::sorted_themes`.

## Screenshot

| Before                       | After                       |
| ---------------------------- | --------------------------- |
| <img width="200" alt="before"
src="https://github.com/user-attachments/assets/376e0abb-be27-49fd-b84d-dd0f2ee906ae"
/> | <img width="200" alt="after"
src="https://github.com/user-attachments/assets/2fd559ab-4ed4-4619-bcc7-fb1dd5364bdc"
/> |
2026-01-16 10:01:17 +08:00
Elliott Minns f86cbdd2a8 input: Triple click support for line selection (#1917)
## Description

This PR adds in support for triple clicking an input field, which
selects the entire line. This keeps the input component similar to
expected behavior in operating systems such as macOS.

## How to Test

Navigate to an input field and click the mouse three times. Entire line
should be selected rather than just the current word. Double click still
works as expected.

## Checklist

- [X] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [X] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [X] Passed `cargo run` for story tests related to the changes.
- [x] Tested macOS, Windows and Linux platforms performance (if the
change is platform-specific)
2026-01-15 15:05:20 +00:00
Floyd Wang 2e75bebf47 date_picker: Fix incorrect placeholder text color (#1945)
Closes #1944.

| Before | After |
| - | - |
| <img width="1055" height="759" alt="SCR-20260115-rfpd"
src="https://github.com/user-attachments/assets/02c39b6d-d64c-4a8e-a5fd-2849f3225aba"
/> | <img width="1008" height="761" alt="After"
src="https://github.com/user-attachments/assets/9d77b3aa-9295-4f46-b7aa-8c3fe71b67f8"
/> |
2026-01-15 11:50:33 +00:00
Floyd Wang 1a19df56ca popover: Notify when the content bounds change (#1941) 2026-01-15 16:00:44 +08:00
Ylin e065a41edd dock: Pub dock panel and active_ix of table_panel (#1940) 2026-01-15 15:48:36 +08:00
Floyd Wang 9933b62bc3 popover: Restore lost with_priority (#1939)
Cause by #1931.
2026-01-15 06:31:25 +00:00
Floyd Wang 50270c4e80 popup_menu: Improve dismiss events (#1938)
Handle left mouse button up and right mouse button down events.
2026-01-15 13:53:20 +08:00
Floyd Wang b6f284ce95 Bump gpui to fix Linux build issue (#1937)
Closes #1936.
2026-01-15 02:11:28 +00:00
Ylin 9a120432b3 dock: Expand dock interface, optimize some usage methods (#1933)
## Breaking Changes
- Remove method `set_root`
- Rename the method to get the center dock

```diff
let dock_area = DockArea::new();
- let dock_item = dock_area.items();
+ let dock_item = dock_area.center();
```
2026-01-14 22:07:44 +08:00
Floyd Wang f7204a420c popup_menu: Occlude events (#1935)
## Before

https://github.com/user-attachments/assets/08dc5c66-47ab-47b0-827c-64dca2fc13ba


## After

https://github.com/user-attachments/assets/ccd96716-0727-4c9d-81d2-5ee3154cf491
2026-01-14 19:21:32 +08:00
Floyd Wang bc5745c5af sidebar: Add context menu support (#1934)
This pull request enhances the sidebar and context menu functionality
with improved right-click context menu support and better event
handling.

- Added context menu support to `SidebarMenuItem`.
- Enhanced popover overlay dismiss behavior to handle both left and
right mouse clicks.

## Preview
<img width="381" height="285" alt="image"
src="https://github.com/user-attachments/assets/f0f61465-2fcc-4f1e-9160-5af7af0884b3"
/>
2026-01-14 07:46:53 +00:00