Jason Lee
2396c918f2
Hide scrollbar when scroll are is small than container. ( #71 )
2024-07-25 15:53:57 +08:00
Floyd Wang
f02c2a82b1
Do not preset padding when input with affix ( #70 )
2024-07-25 11:02:04 +08:00
尹吉峰
7489a4ffdd
Update WebView to pass wry::WebView instance ( #69 )
...
It's much prefer to use `WebViewBuilder` instead of
[WebView::new](https://docs.rs/wry/latest/wry/struct.WebView.html#method.new )
2024-07-24 19:32:05 +08:00
Jason Lee
4c81977639
Fix Label text_align again.
2024-07-24 19:01:43 +08:00
Jason Lee
ed132ad55e
Add more example to Label.
2024-07-24 18:56:32 +08:00
Jason Lee
6b019e3954
Impl InteractiveElement, StatefulInteractiveElement for Scrollable.
2024-07-24 17:59:44 +08:00
Jason Lee
030a706a4c
Refactor ScrollView into scrollable fluent method. ( #68 )
2024-07-24 17:50:50 +08:00
Jason Lee
22a15c7dcc
Update scroll view ( #66 )
2024-07-24 15:41:20 +08:00
Jason Lee
e0103d1d58
Add CI ( #62 )
2024-07-24 10:39:19 +08:00
Floyd Wang
764e7486e7
Set the default cleanable to false for new dropdown ( #63 )
2024-07-24 10:07:11 +08:00
Jason Lee
b4862082f1
Improve list item ( #61 )
2024-07-23 22:08:21 +08:00
Jason Lee
db14f0a2e5
Add pattern and validate to Input for limit input format. ( #59 )
2024-07-23 15:36:08 +08:00
Jason Lee
30f34dc780
Fix button icon color support ( #57 )
2024-07-23 13:45:34 +08:00
Jason Lee
652efd187c
Update list to save the task on the struct.
2024-07-23 10:51:11 +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
ca08be7038
Fix Popup modal mouse move crossed to back layer. ( #51 )
2024-07-20 02:39:27 +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
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
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
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
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
0d6d1c95d0
Fix ProgressBar example to avoid over the range.
2024-07-12 23:27:37 +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
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
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
Jason Lee
310e5e3cde
Avoid PickerStory clone vec.
2024-07-08 23:22:08 +08:00
Jason Lee
9b51a5b998
Remove picker, add list instead. ( #17 )
2024-07-07 02:07:17 +08:00
Jason Lee
ac789b2379
Add Table ( #16 )
...
https://github.com/huacnlee/gpui-component/assets/5518/8603cbcc-c416-4d10-84a0-8cfe2e021e1a
2024-07-06 21:01:16 +08:00
Jason Lee
c925a6aa61
Add ButtonStyle::Outline, ButtonStyle::Glost
2024-07-05 00:18:36 +08:00
Jason Lee
acbc029eed
Add PopupMenu ( #15 )
...

2024-07-05 00:04:34 +08:00
Jason Lee
3ccadf6cc3
Improve focus ( #14 )
...
- Add `FocusableCycle` trait to help impl cycle focus.
- Add `outline` style to StyledExt.
2024-07-04 14:05:14 +08:00
Jason Lee
f78d50b5e9
Update dock layout
2024-07-04 01:05:32 +08:00
Jason Lee
19930e46db
Add SvgImg to render svg, and with a Chart example ( #13 )
...
https://github.com/huacnlee/gpui-component/assets/5518/576da9f9-4bff-4faf-a17e-19860cf6f948
2024-07-03 19:09:59 +08:00