Jason Lee
|
6c4de54fa4
|
theme: Use font_family for all elements. (#1618)
Close #1613
- And add `mono_font_family` and `mono_font_size` for code editor.
|
2025-11-17 03:18:17 +00:00 |
|
Jason Lee
|
34ef0ff6d0
|
chore: Rename Dropdown to Select, TextInput to Input. (#1449)
## Break Change
- The `Dropdown` has been renamed to `Select`.
- The `TextInput` has been renamed to `Input`.
| Before | After |
| --- | --- |
| TextInput | Input |
| Dropdown | Select |
| DropdownItem | SelectItem |
| DropdownItemGroup | SelectGroup |
| DropdownState | SelectState |
| DropdownEvent | SelectEvent |
| DropdownDelegate | SelectDelegate |
| dropdown::ListEvent | ~~Removed~~ |
- Renamed `PopupMenuExt` to `DropdownMenu`.
- Removed pub mod `menu::popup_menu`, `menu::context_menu`, they are
moved into `menu` mod.
- Renamed `popup_menu` method to `dropdown_menu` for `DropdownMenu`,
`Panel`, `PanelView` and `DropdownButton`.
| Before | After |
| --- | --- |
| popup_menu::PopupMenuExt | menu::DropdownMenu |
| popup_menu | dropdown_menu |
| popup_menu_with_anchor | dropdown_menu_with_anchor |
|
2025-10-28 21:22:31 +08:00 |
|
Jason Lee
|
5e504d10bb
|
chore: Refactor tab key to switch focus. (#991)
Wait https://github.com/zed-industries/zed/pull/33008,
https://github.com/zed-industries/zed/pull/34804 to merge.
https://github.com/user-attachments/assets/3c21ebc9-44a0-4311-bb0f-5f63fe8d4bb3
- Improved `focus_ring` to render like an outline.
- Added to support press `Enter`, `Space` key to trigger Checkbox,
Button, Radio.
## Break Changes
- The `FocusableExt` has been changed to only for crate internal.
- The `FocusableCycle` has been removed, now GPUI has it own tab stop
implementation.
|
2025-09-29 16:48:24 +08:00 |
|
Jason Lee
|
a6a14fd57b
|
input: Disable context menu item for disabled input. (#1280)
|
2025-09-25 16:36:57 +08:00 |
|
Jason Lee
|
bf5650b5db
|
input: Add context menu for cut, copy, paste. (#1279)
Close #27
<img width="756" height="674" alt="image"
src="https://github.com/user-attachments/assets/07884a7e-366b-47b8-8bd7-a88f3cae52b8"
/>
|
2025-09-23 22:06:58 +08:00 |
|