Jason Lee
f6b4e5a591
dock: Fix add_panel with placement to split size. ( #212 )
...
https://github.com/user-attachments/assets/7177bd8f-5b19-4959-8d60-cae583173e73
2024-09-04 00:35:51 +08:00
ihavecoke
acabaf32c8
Correcting shacn to shadcn to uniformly use shadcn ui names ( #210 )
...
* Fixed some color naming with shadcn style
* Input story support scroll y
2024-09-03 23:31:34 +08:00
Jason Lee
0158083599
dock: Fix panel zoom sometimes is not work. #197 ( #211 )
...
This is because the `PanelEvent::ZoomIn` is called 2 times when we click
the menu (I don't why, not found the source).
So just split Zoom in, Zoom out as two difference methods to avoid this.
2024-09-03 23:15:44 +08:00
Jason Lee
0834ac0394
dock: Fix panel that can not auto resize when it have initial size. ( #209 )
...
https://github.com/user-attachments/assets/8605b82e-6113-41d1-a9c4-0ba7d55968ba
2024-09-03 21:39:03 +08:00
Jason Lee
e318a9d8dc
doc: Fix TabPanel popup menu can't dispatch action to TabContent. ( #208 )
...
Co-authored-by: Floyd Wang <gassnake999@gmail.com>
2024-09-03 19:51:35 +08:00
Jason Lee
5e86c9cfa0
dock: Revert first argument for TabPanel::new ( #207 )
2024-09-03 14:04:00 +08:00
Jason Lee
73e82c785a
dock: Improve set_parent in StackPanel insert_panel to use defer instead of spawn ( #205 )
2024-09-03 11:18:57 +08:00
Jason Lee
8ece86cd0c
dock: Add id to DockArea and improve DockArea init. ( #204 )
...
- Export add_panel_at method for TabPanel to split_panel.
- Fix resizeable_panel init size support.
- Fix panel resize to let panel that have initial size will not auto resize on window resize.
- Fix resize_handle sometimes will invisibly bug.
- Update TabPanel new to support give parent StackPanel.
2024-09-02 21:27:19 +08:00
Jason Lee
f611b599aa
dropdown: Fix Dropdown placeholder to support change locale. ( #203 )
2024-09-02 14:57:53 +08:00
Jason Lee
af09525c1e
dock: Add popup_menu delegate to custom panel menu. ( #202 )
2024-09-02 14:55:37 +08:00
Jason Lee
f5cae46e42
Improve ColorPicker to support input hex color. ( #201 )
...
https://github.com/user-attachments/assets/be5fc290-0464-4356-9f97-c35720e3e11d
2024-09-02 13:56:19 +08:00
Jason Lee
a049f606c0
Fix Checkbox, Radio label color. ( #200 )
2024-09-02 00:24:57 +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
926de77967
Fix tooltip padding. ( #198 )
2024-09-01 21:58:50 +08:00
Jason Lee
6564c502c9
Add close menu to Panel. ( #196 )
2024-09-01 21:33:50 +08:00
Jason Lee
9c4411ff2b
date_picker: Reduce DatePicker popup position. ( #195 )
2024-09-01 00:36:51 +08:00
Jason Lee
169572fa74
tab: Improve TabBar border to let active item can override it. ( #194 )
2024-09-01 00:31:14 +08:00
Jason Lee
3d8e7a9e54
Update GPUI and fix Input API changes. ( #193 )
2024-08-31 23:17:14 +08:00
Floyd Wang
ef49753d32
Improve dropdown disabled state ( #192 )
2024-08-30 15:26:56 +08:00
Jason Lee
0da882349f
Add exit animation to Notification.
...
- Add `cubic_bezier` method and change modal to use this.
Ref #148
https://github.com/user-attachments/assets/c09adc18-554c-4300-8109-98f3ab183910
2024-08-30 11:24:55 +08:00
Floyd Wang
14af8998bf
Add disabled state for the dropdown ( #190 )
2024-08-30 09:56:12 +08:00
ihavecoke
fd2f5e46f2
Securely handle table load more subtract logic to prevent attempt to subtract with overflow panic ( #189 )
2024-08-29 23:29:26 +08:00
Floyd Wang
b6ce44c349
Support press esc to close popover ( #188 )
2024-08-29 18:07:26 +08:00
Floyd Wang
311abe07fe
Reduce Popover pop-up margin ( #187 )
2024-08-29 16:19:29 +08:00
Floyd Wang
7286866afd
Reduce PopoverContent padding ( #186 )
2024-08-29 11:35:38 +08:00
Jason Lee
f7f3fcedf3
slider: Improved bar and thumb position. ( #185 )
2024-08-29 10:36:47 +08:00
Jason Lee
9768755eab
Fix panel resize when window resized. ( #181 )
...
Co-authored-by: Floyd Wang <gassnake999@gmail.com>
2024-08-28 19:40:35 +08:00
Jason Lee
237b0f6956
table: Add load_more delegate method and called when scrolled near the bottom. ( #183 )
...
https://github.com/user-attachments/assets/03001a21-6a3d-4c06-a00c-9dea8208e357
2024-08-28 15:12:42 +08:00
ihavecoke
a5217df13e
Popover content supports setting the maximum width ( #180 )
...
Before:

After:

2024-08-27 22:08:50 +08:00
Jason Lee
7b5efd19bb
Better Panel resize. ( #178 )
...
- Resize panels when windows is resize to smaller #175 .
https://github.com/user-attachments/assets/b2c50949-7310-4d3d-8276-5bf15cf3ba9f
2024-08-27 18:38:37 +08:00
Jason Lee
ad5e480e63
Fix input history ( #179 )
2024-08-27 13:52:19 +08:00
Jason Lee
1dbf809e99
Improved Notification to manage autohide on list. ( #177 )
2024-08-24 00:26:16 +08:00
Jason Lee
409f597100
Fix resizeable panel sometime will not fill parent. ( #176 )
...
<img width="1202" alt="image"
src="https://github.com/user-attachments/assets/dbffde88-fc1d-409b-8795-15c405cc4ce9 ">
2024-08-23 22:15:52 +08:00
Jason Lee
5533a8b72c
Fix drawer position ( #174 )
2024-08-23 22:01:52 +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
Floyd Wang
7e9d79ca1b
Improve the loading button ( #170 )
...
* Set the background opacity when loading
* Do not trigger the on click event when loading
2024-08-21 10:57:41 +08:00
王恒
36354cc5e4
Set cursor width to an integer to prevent width fluctuation on low PPI devices. ( #169 )
...
Before
https://github.com/user-attachments/assets/38ceac8e-c98d-43c7-844b-0a2fb7d416a5
After
https://github.com/user-attachments/assets/e3f9c70e-773e-4606-ad6a-021b0e7fd7c9
2024-08-19 16:37:40 +08:00
Jason Lee
7a00e8a68e
Add search to List example. ( #168 )
...
- Fix drawer, modal open to focus on first input.
2024-08-19 16:13:14 +08:00
Jason Lee
b3bee1db3a
Improved id for Switch. ( #167 )
2024-08-19 15:53:38 +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
fd837565c4
Add KeyBinding to MenuItem. ( #164 )
...
<img width="370" alt="image"
src="https://github.com/user-attachments/assets/a0e98260-75ac-4a79-bf24-80d2c82f9507 ">
2024-08-16 18:57:43 +08:00
Jason Lee
46ff43ff36
Extract History to a common design to support more cases. ( #162 )
...
Ref https://github.com/huacnlee/gpui-component/issues/161
For example: Used to do Back/Forward
2024-08-16 17:04:11 +08:00
Jason Lee
4490618c4a
Update table to support to support toggle col selection. ( #159 )
...
- Add `border` method to enable/disable border, default: `true`.
- Update `stripe` default to false.
- Update theme to remove table head color, just use window bg like.
<img width="1263" alt="image"
src="https://github.com/user-attachments/assets/2e0994a9-7172-4812-a0e2-3b3ba4281112 ">
Closes #155
2024-08-16 14:34:53 +08:00
Jason Lee
a79d1a3dc2
Fix scrollbar to default to invisible on first render. #146 ( #158 )
2024-08-16 14:07:59 +08:00
Jason Lee
e86f90d309
Close Dropdown menu on blur. ( #157 )
...
Closes #156
2024-08-16 14:03:45 +08:00
Jason Lee
b3f62bf096
Export with_type and impl FluentBuilder for Notification. ( #154 )
2024-08-15 19:52:37 +08:00
Jason Lee
57dab4d15a
Rename with_id, with_type_id to id, type_id. ( #153 )
2024-08-15 18:05:07 +08:00
Floyd Wang
a02a6ed6b8
Set default true for cleanable & trigger event when dropdown clean ( #152 )
2024-08-15 18:01:43 +08:00
Jason Lee
36475bac76
Add with_type_id to support set a struct as a Notification unique id. ( #151 )
2024-08-15 18:01:32 +08:00