Jason Lee
|
36dcc53824
|
dock: Add set_dock_collapsible to support setting the Docks to be collapsible or not. (#445)
Close #442
In this case, the left Dock is not collapsible:
<img width="1165" alt="image"
src="https://github.com/user-attachments/assets/21422cdd-d686-4931-9285-925b8e8d3343">
|
2024-11-27 21:34:44 +08:00 |
|
xda
|
53fe5823ef
|
dock: Fix panel should have a maximal width restriction when resizing (#443)
https://github.com/user-attachments/assets/617336d2-5392-4eba-a1b4-f1234c8d2eec
|
2024-11-27 20:36:05 +08:00 |
|
Jason Lee
|
142d092867
|
dock: Add add_panel method to add panel to DockArea. (#440)
Ref #438
https://github.com/user-attachments/assets/93b40aed-39f3-4d16-a442-13aa7a931895
|
2024-11-27 11:27:04 +08:00 |
|
Jason Lee
|
ea011d11d6
|
dock: Hide toggle button when side dock is not exist. (#431)
|
2024-11-22 15:38:47 +08:00 |
|
xda
|
d937a90db6
|
dock: Render toggle dock buttons inside the Panels. (#414)
Co-authored-by: Jason Lee <huacnlee@gmail.com>
|
2024-11-22 14:41:04 +08:00 |
|
Jason Lee
|
fa6abe5a9e
|
chore: Upgrade GPUI and fix API changes. (#426)
Refs:
- https://github.com/zed-industries/zed/pull/20349
- https://github.com/zed-industries/zed/pull/20371
- https://github.com/zed-industries/zed/pull/20686
|
2024-11-18 11:35:49 +08:00 |
|
Jason Lee
|
7edbdd01f4
|
dock: Remove the inside toggle dock button in Dock to reduce complex and add dock::ToggleButtons. (#415)
Draft https://github.com/longbridgeapp/gpui-component/pull/414 to keep
old code.
<img width="1712" alt="image"
src="https://github.com/user-attachments/assets/749a5712-7ec4-43a8-a89d-595a7644a7ec">
|
2024-11-14 12:05:58 +08:00 |
|
xda
|
47688a8af2
|
dock: Generalize Dock's panel to accommodate DockItem (#412)

|
2024-11-14 12:00:23 +08:00 |
|
Jason Lee
|
5fd2ebf522
|
panel: Always not show active tab style, when the dock is collapsed. (#335)
## Before
<img width="249" alt="image"
src="https://github.com/user-attachments/assets/2dfee593-1a07-4b75-913b-d2e17decb67a">
## After
<img width="271" alt="image"
src="https://github.com/user-attachments/assets/20752d04-1f25-498c-8e6e-4ff0f21401bf">
|
2024-10-14 10:06:20 +08:00 |
|
Jason Lee
|
5915618928
|
dock: Fix zoom support for side dock panel. (#327)
- Fix emit `PanelEvent::LayoutChanged` when panel resized.
|
2024-10-10 15:16:16 +08:00 |
|
Jason Lee
|
ca5a0e02d5
|
dock: Add to support save left, right, bottom dock state. (#303)
The dock state have been updated to use `DockAreaState`.
|
2024-10-03 17:25:31 +08:00 |
|
Jason Lee
|
6f1be83b6e
|
dock: Add left, bottom, right fixed dock and support toggle. (#291)
- Improve TabPanel to support control closable.
## Demo
https://github.com/user-attachments/assets/dcf8cde3-61ee-42f6-be93-76f10fc8cf34
|
2024-10-02 17:42:52 +08:00 |
|