Jason Lee
|
d7cd0e54c2
|
list: Fix selected and confirmed list item detail. (#520)
Closes #519 to fix popup_menu attempt to subtract with overflow bug.
|
2024-12-27 18:41:27 +08:00 |
|
Jason Lee
|
d4819b34aa
|
chore: Update GPUI with AnchorCorner renamed to Corner. (#497)
Ref https://github.com/zed-industries/zed/pull/22119
|
2024-12-18 18:02:47 +08:00 |
|
Jason Lee
|
23d273eaf9
|
sidebar: Add Sidebar (#452)
Close #430
<img width="1150" alt="image"
src="https://github.com/user-attachments/assets/2564bcfa-7aff-41d3-a7be-496ef2365e30">
<img width="1150" alt="image"
src="https://github.com/user-attachments/assets/18c6718a-7641-4e8f-ad0f-bc18bd91fc42">
|
2024-12-02 23:21:39 +08:00 |
|
Jason Lee
|
b7a1292d07
|
popup_menu: Add popup_menu_with_anchor method to control the Anchor for PopupMenu. (#378)
|
2024-10-24 11:05:13 +08:00 |
|
Jason Lee
|
a798bd81c6
|
chore: Fix typos. (#364)
|
2024-10-18 14:30:24 +08:00 |
|
Jason Lee
|
4bef681c9a
|
table, list: Add right clicked row style and improve selection style. (#362)
- table: Add `content_menu` to TableDelegate.
<img width="644" alt="image"
src="https://github.com/user-attachments/assets/4c21299f-00e8-4a61-964d-338ef7daa802">
|
2024-10-18 11:52:14 +08:00 |
|
Jason Lee
|
41c64e2912
|
chore: Update controls detail. (#352)
- Better icon style in Input, Dropdown, DatePicker.
|
2024-10-16 17:51:39 +08:00 |
|
Jason Lee
|
5f1b68a431
|
menu: Add menu_with_element to add a custom render item. (#330)
<img width="230" alt="image"
src="https://github.com/user-attachments/assets/e12dbde4-c02e-4445-b8ff-5bf0b54c7aac">
|
2024-10-10 20:22:25 +08:00 |
|
Jason Lee
|
efa044f417
|
menu: Fix Menu scrollbar will always showing bug. (#328)
- Improved Scrollbar size.
|
2024-10-10 18:10:28 +08:00 |
|
Jason Lee
|
cbed7b1ea1
|
menu: Add scrollable support to menu. (#310)
<img width="274" alt="image"
src="https://github.com/user-attachments/assets/eaff16a6-1294-4381-96c0-c178c195999b">
|
2024-10-04 14:24:05 +08:00 |
|
Jason Lee
|
7de1c6981e
|
windows: Fix keybinding display on Windows. (#289)
<img width="191" alt="image"
src="https://github.com/user-attachments/assets/7cc4d80f-5759-4432-9a13-6fd027af4b27">
|
2024-09-29 23:07:45 +08:00 |
|
Jason Lee
|
709c706adf
|
menu: Improve Menu to avoid invalid or duplicate separators. (#276)
|
2024-09-26 21:28:42 +08:00 |
|
Jason Lee
|
fbbb985e84
|
ui: Improve UI details (Modal, Checkbox, Radio and MenuItem) (#233)
- modal: Reduce modal title line height.
- checkbox, radio: Fix label line height to align with checkbox.
- menu: Update Menu item style, height to 28px, and fix divider padding.
<img width="523" alt="image"
src="https://github.com/user-attachments/assets/c254dc07-9d37-4885-b687-58ec4d8e95a4">
<img width="453" alt="image"
src="https://github.com/user-attachments/assets/3ad44419-1953-4048-8173-4d8c0646777a">
<img width="369" alt="image"
src="https://github.com/user-attachments/assets/84d23eb2-15f9-47d7-b6d4-15295ab3a544">
|
2024-09-10 19:42:54 +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 |
|
ihavecoke
|
a5217df13e
|
Popover content supports setting the maximum width (#180)
Before:

After:

|
2024-08-27 22:08:50 +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
|
bb6d8d8f60
|
Cleanup first version impls (#132)
|
2024-08-11 14:46:55 +08:00 |
|
Jason Lee
|
966ce4c2dd
|
Add link, link_with_icon to PopupMenu, and remove track_focus. (#121)
- Add `popup_menu` quick API to Button to let easy to use.
|
2024-08-08 19:50:10 +08:00 |
|
Jason Lee
|
827f57fb6a
|
Add Sizable trait to impl small, xsmall, large and apply to Button, Input, Dropdown, Switch. (#113)
|
2024-08-06 17:19:54 +08:00 |
|
Jason Lee
|
a5989f6a7c
|
Improve PopupMenu style (#108)
<img width="216" alt="image"
src="https://github.com/user-attachments/assets/9dcfd30f-62cc-41ff-a97d-f69b79bd997c">
<img width="346" alt="image"
src="https://github.com/user-attachments/assets/c7e564e9-c0f9-4282-9df1-9c2cd92efea9">
|
2024-08-05 21:23:57 +08:00 |
|
Jason Lee
|
4b61c3c25a
|
Add ContextMenu (#107)
https://github.com/user-attachments/assets/1534bb31-1d32-40b8-8871-f41fb182c8e9
|
2024-08-05 20:54:07 +08:00 |
|
Jason Lee
|
4a5b387b40
|
Fix mistake unwrap in PopupMenu.
|
2024-08-01 15:43:21 +08:00 |
|
Jason Lee
|
3dd149e711
|
Update PopupMenu to support checked style. (#96)
<img width="256" alt="image"
src="https://github.com/user-attachments/assets/87009870-e426-48e5-9860-ba91b4702ea4">
|
2024-08-01 15:41:00 +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 |
|
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
|
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
|
acbc029eed
|
Add PopupMenu (#15)

|
2024-07-05 00:04:34 +08:00 |
|