Commit graph

43 commits

Author SHA1 Message Date
Jason Lee
bf134b2ff9
Add to support dump/load Dock layout. (#226) 2024-09-09 13:30:22 +08:00
Jason Lee
821487bed5
Improve popup snap to window with margin. (#225)
- Also update GPUI.

Ref: https://github.com/zed-industries/zed/pull/17159

<img width="866" alt="image"
src="https://github.com/user-attachments/assets/0737e4e4-7069-4554-a766-b9fc7b487fd6">
2024-09-07 11:50:38 +08:00
Jason Lee
2c469da55a
Update GPUI and apply opacity feature. (#215) 2024-09-04 19:29:51 +08:00
Jason Lee
1f0e52da50
Add ColorPicker (#199)
<img width="262" alt="image"
src="https://github.com/user-attachments/assets/ad96859f-e6cb-47a6-bedb-fef02122b711">
2024-09-02 00:21:01 +08:00
Jason Lee
3d8e7a9e54
Update GPUI and fix Input API changes. (#193) 2024-08-31 23:17:14 +08:00
Jason Lee
ad5e480e63
Fix input history (#179) 2024-08-27 13:52:19 +08:00
Jason Lee
72b8290945
Upgrade GPUI. (#173) 2024-08-23 18:43:26 +08:00
Jason Lee
c5c8e46ac7
New Dock (#172)
https://github.com/user-attachments/assets/c8c55faa-8f17-4fa2-9f62-5fdd598087ef

- [x] Move to insert panel to tabs middle.
- [x] Zoom panel
- [x] Tab popup menu (Close Panel, Split, Zoom in/Zoom out)
- [x] TabBar scrollable
- [ ] TabBar nav history
2024-08-23 18:01:29 +08:00
Jason Lee
f05d2ebbd2
popup_menu: Add submenu support. (#165)
- Add submenu support.
- Removed Popover `window` mode, this is not a good design.


https://github.com/user-attachments/assets/0e3735f4-2bfb-459f-a24d-e3440e738d4f
2024-08-19 14:58:28 +08:00
Jason Lee
c9763224c2
Add Notification (#149)
https://github.com/user-attachments/assets/8a10bff7-f669-471e-8516-2a64ae95ae0a
2024-08-15 16:50:33 +08:00
Jason Lee
e1f07103d6
Update GPUI (#140) 2024-08-13 18:25:37 +08:00
Jason Lee
8aa80ead58
Update rust-i18n v3.1.1 (#127) 2024-08-09 11:53:42 +08:00
Jason Lee
ebdcf244e2
Add Calendar and DatePicker. (#117)
https://github.com/user-attachments/assets/dda87fa7-f080-418a-8dd7-ab8581eb3beb
2024-08-07 20:25:11 +08:00
Jason Lee
d172dc3abd
Update GPUI (#114) 2024-08-06 17:42:51 +08:00
Jason Lee
f3fdfae002
Fix list next to select first item, cancel to deselect item. (#110)
- Add confirmed to ListItem to show check style.
2024-08-06 11:31:35 +08:00
Jason Lee
06008524dd Update gpui 2024-07-31 09:39:29 +08:00
Jason Lee
e0103d1d58
Add CI (#62) 2024-07-24 10:39:19 +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
1eb44c4f1a Update GPUI 2024-07-23 09:44:09 +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
e3a49f20ca Update GPUI 2024-07-19 21:35:43 +08:00
Jason Lee
e95971624e Fix windows build. 2024-07-18 23:29:22 +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
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
7c99584862
Add Indicator (#25)
https://github.com/user-attachments/assets/cd6410ca-e1c7-459e-8455-d76506b6d305
2024-07-12 17:33:05 +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
56eb7147d9
Add a batch of color methods. (#20)
https://ui.shadcn.com/colors#colors
2024-07-11 18:16:57 +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
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
24348ec874 Fix TitleBar 2024-07-04 10:14:44 +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
Jason Lee
f2703122b8 Move title_bar, util into workspace. 2024-07-01 23:51:47 +08:00
Jason Lee
502d4df135
Add Dock & Panel (#10)
https://github.com/huacnlee/gpui-component/assets/5518/51622a5e-f51d-4ede-8cae-04cae703f8aa
2024-07-01 14:20:56 +08:00
Jason Lee
586569f241
Add a List example (#8)
https://github.com/huacnlee/gpui-component/assets/5518/2554bb6c-94f6-4808-87d6-9a04d7421b26
2024-06-30 16:56:23 +08:00
Jason Lee
659f00c9a4
New input (#1)
![CleanShot 2024-06-27 at 15 34
23](https://github.com/huacnlee/gpui-app/assets/5518/95e24dd1-8924-47e4-8063-200fa76efa1f)

Ref: https://github.com/zed-industries/zed/pull/13534
2024-06-27 15:36:07 +08:00
Jason Lee
1f21469e7b Split story into a crate. 2024-06-26 14:38:06 +08:00
Jason Lee
5e4a16b62d Fix windows startup. 2024-06-25 21:28:08 +08:00
Jason Lee
8440df938a Add checkbox, title_bar. 2024-06-25 17:16:04 +08:00
Jason Lee
94cb714ebf Update to use shadcn ui theme 2024-06-24 15:39:26 +08:00
Jason Lee
ae8c0ab657 Update input 2024-06-22 17:42:42 +08:00
Jason Lee
b503d5f7e3 Add input 2024-06-14 19:47:03 +08:00
Jason Lee
9ffea5798e First commit, with Button UI. 2024-06-13 21:46:28 +08:00