Jason Lee
1eb44c4f1a
Update GPUI
2024-07-23 09:44:09 +08:00
Jason Lee
faa16fb660
Add ScrollView ( #56 )
2024-07-23 09:38:23 +08:00
Jason Lee
5034152f21
Improved Input prefix, suffix with a builder to support Element. ( #54 )
...
- Add loading to List query input and changed perform_search now return
a Task.
2024-07-22 15:30:07 +08:00
Jason Lee
4687a18ee4
Add to support Input history for undo & redo ( #53 )
...
https://github.com/user-attachments/assets/b898dc08-8e99-4247-8dc3-d5752d1bc2f3
Ref https://github.com/huacnlee/gpui-component/issues/27
2024-07-22 11:36:54 +08:00
Jason Lee
ca08be7038
Fix Popup modal mouse move crossed to back layer. ( #51 )
2024-07-20 02:39:27 +08:00
Jason Lee
e3a49f20ca
Update GPUI
2024-07-19 21:35:43 +08:00
Jason Lee
e54d1f600b
Add to masked Label and support children to Button ( #50 )
...
https://github.com/user-attachments/assets/9583ce15-b801-45f9-aafb-54f0ecdf7dc9
- Add masked mode to Label.
- Add to support any children to Button.
- Fix Popover to support selected state style.
2024-07-19 18:54:16 +08:00
Jason Lee
a69d30be6a
Add cx.theme auto import to support WindowContent.
2024-07-19 11:32:25 +08:00
Jason Lee
613cfebb65
Improve ActiveTheme trait to impl ViewContent and ModelContext to support auto import. ( #49 )
2024-07-19 11:20:45 +08:00
Jason Lee
e95971624e
Fix windows build.
2024-07-18 23:29:22 +08:00
Floyd Wang
e4b9e008ba
Use cx.quit() instead of std::process::exit(0) ( #47 )
2024-07-18 19:02:39 +08:00
Floyd Wang
653222db73
dropdown: Use event instead of callback ( #46 )
...
* Rule: use event for `Render`, use callback for `RenderOnce`
2024-07-18 18:40:32 +08:00
Jason Lee
bac5392e0a
Refactor Slider, Input, InputOtp to use EventEmiter to emit change ( #45 )
2024-07-18 18:38:58 +08:00
Jason Lee
f6146220e4
Add WebView ( #2 )
...
- https://github.com/huacnlee/zed/pull/6
- https://github.com/zed-industries/zed/pull/13730
2024-07-18 18:00:23 +08:00
Floyd Wang
91e123e942
input: TextEvent Add Focus & Blur events
2024-07-18 17:48:57 +08:00
Floyd Wang
07a1f3099e
dropdown: Add on change callback
2024-07-18 16:50:30 +08:00
尹吉峰
4ccbe9bd71
Update Dropdown ( #42 )
2024-07-18 16:12:12 +08:00
Jason Lee
683b22c4a4
Fix Resizable drag move position. #28 ( #41 )
2024-07-18 00:02:59 +08:00
Jason Lee
0fdf7be40d
Fix table scrollbar display layer.
2024-07-17 23:19:03 +08:00
Jason Lee
b8a7d6a2dd
Change InputOpt default masked: false and publish masked method.
2024-07-17 18:57:19 +08:00
Jason Lee
c7336fd5ea
Add InputOtp ( #40 )
...
https://github.com/user-attachments/assets/c92da4e7-21de-436f-968d-7cb47fa31aed
2024-07-17 18:49:41 +08:00
Jason Lee
d71b697f41
Add Slider ( #39 )
...
https://github.com/user-attachments/assets/a1799cd9-45af-413c-b32b-c60fb1b8d586
2024-07-17 16:01:27 +08:00
Jason Lee
3aaa348fbb
Add label support to horizontal Divider.
2024-07-17 14:11:17 +08:00
Jason Lee
ac3d6760ed
Fix vertical Divider
2024-07-17 13:59:20 +08:00
Jason Lee
3467522714
Add double click to select word support for Input. ( #38 )
...
Continue #27
2024-07-17 11:41:04 +08:00
Jason Lee
36411750ee
Fix to limit change when Input is disabled.
...
Add clean button to List query input.
Add ButtonRouneded with px support.
2024-07-17 10:47:25 +08:00
Jason Lee
702863eb83
Add overflow scroll support to Input. ( #37 )
...
Continue #27
- Fix cut and paste invalid replace range.
- Add `Shift-Home`, `Shift-End` for select to home or end.
## Show case
https://github.com/user-attachments/assets/d99c56e3-5241-46e2-b3ac-f72ef962b0b5
2024-07-17 10:31:17 +08:00
Jason Lee
07e1296916
Add cleanable to Input ( #36 )
2024-07-16 19:44:16 +08:00
Jason Lee
ce7c1a3a34
Add Small, Large size support to Input and Dropdown and let them use same height. ( #35 )
...
- Add `Dropdown::string_list` to use `Vec<SharedString>` to create
dropdown for easy use.
- Add `input_px`, `input_py`, `input_h` trait methods to `Styled`
element.
2024-07-16 15:14:12 +08:00
Jason Lee
2b184ca8d5
New Scrollbar ( #33 )
...
https://github.com/user-attachments/assets/30d890bc-49cc-4abe-8652-387ddbb73198
2024-07-16 12:00:51 +08:00
Floyd Wang
b1bb22fd1d
Fix clippy warning
2024-07-15 11:42:14 +08:00
Jason Lee
59603ab83b
Add min_w, max_w to PopupMenu, and default min_w: 120, max_w: 500
2024-07-15 09:15:12 +08:00
Jason Lee
4ca98029dd
Fix placeholder style for Input ( #32 )
...
https://github.com/huacnlee/gpui-component/issues/27
2024-07-13 09:53:03 +08:00
Jason Lee
35cec4cf5c
Update to use better implementation of selection support for Input. ( #31 )
...
Co-authored-by: Conrad Irwin <conrad@zed.dev>
2024-07-13 09:40:42 +08:00
Jason Lee
41a83e6f6f
Improve Input ( #29 )
...
Continue #27
- Fix selection color in dark mode.
- Allow to continue selection, even mouse is out of the input.
- Pause cursor blinking when keep typing.
https://github.com/user-attachments/assets/ce9e722c-5c47-4daa-b2ba-cbe1680c4932
2024-07-13 00:34:55 +08:00
Jason Lee
0d6d1c95d0
Fix ProgressBar example to avoid over the range.
2024-07-12 23:27:37 +08:00
Jason Lee
9371584e18
Update Windows demo link.
2024-07-12 23:00:45 +08:00
Jason Lee
21f0e1c78a
Add mouse selection support to Input ( #26 )
...
Done reset mouse support of
https://github.com/zed-industries/zed/pull/13534
https://github.com/user-attachments/assets/71b1d4e4-eef7-4746-8400-b2e3812e5ad4
2024-07-12 22:41:18 +08:00
Floyd Wang
138fc9c7b5
Progress use positioning layout
2024-07-12 18:25:09 +08:00
Jason Lee
7c99584862
Add Indicator ( #25 )
...
https://github.com/user-attachments/assets/cd6410ca-e1c7-459e-8455-d76506b6d305
2024-07-12 17:33:05 +08:00
Floyd Wang
ff8d39d4a9
Update README
2024-07-12 16:39:50 +08:00
Floyd Wang
58dbf88af7
Add Radio ( #24 )
2024-07-12 16:37:31 +08:00
Jason Lee
2401d5d5a4
Add ResizablePanel ( #22 )
...
https://github.com/user-attachments/assets/b4067c1d-0ef0-4de4-bd7a-55f446d35ff0
2024-07-12 15:24:54 +08:00
Jason Lee
9e935bed56
Change switch use mouse_down to handle event fix Windows switch theme support.
2024-07-11 21:52:07 +08:00
Floyd Wang
e1aed0a03d
Add Progress ( #21 )
2024-07-11 19:10:46 +08:00
Jason Lee
56eb7147d9
Add a batch of color methods. ( #20 )
...
https://ui.shadcn.com/colors#colors
2024-07-11 18:16:57 +08:00
Jason Lee
111f051707
Update README, add todos.
2024-07-11 16:43:42 +08:00
Jason Lee
eb43c78cea
Add to support open Popover as a child window. ( #18 )
...
## Goal
Change to let Popup elements open into a window, to make sure the Popup
windows, panels, menus render top than the WebView.
Then we can embed wry or other webview into GPUI.
https://github.com/huacnlee/gpui-component/assets/5518/ce005456-088f-4298-bf5d-2642cf96faff
----
This is also like other software, they are also used in child window to
render the menus, popups.
- https://github.com/huacnlee/gpui-component/pull/2
- https://github.com/zed-industries/zed/pull/13730
## Todos
- [x] Multiple display window position.
- [x] Windows transparent background. (No transparent, just render a
correct window border)
- [x] Disable window resize on Windows.
- [ ] Handle Menu action.
- [x] Provided `popover` or `window` two mode to uses.
2024-07-11 16:20:26 +08:00
Floyd Wang
4d9077fe85
Rename ui::stock to ui::stack
2024-07-09 16:25:07 +08:00
Floyd Wang
75e4451764
Add text align property for Label ( #19 )
2024-07-09 15:56:41 +08:00