No description
Find a file
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
assets Add SvgImg to render svg, and with a Chart example (#13) 2024-07-03 19:09:59 +08:00
crates Add to support open Popover as a child window. (#18) 2024-07-11 16:20:26 +08:00
.gitignore First commit, with Button UI. 2024-06-13 21:46:28 +08:00
Cargo.lock Add to support open Popover as a child window. (#18) 2024-07-11 16:20:26 +08:00
Cargo.toml Add to support open Popover as a child window. (#18) 2024-07-11 16:20:26 +08:00
LICENSE-APACHE Add Dock & Panel (#10) 2024-07-01 14:20:56 +08:00
LICENSE-GPL Add Dock & Panel (#10) 2024-07-01 14:20:56 +08:00
README.md Remove picker, add list instead. (#17) 2024-07-07 02:07:17 +08:00

GPUI Compoment

This is an example of build app by using GPUI.

https://github.com/huacnlee/gpui-app/assets/5518/ad103f02-697a-40ed-a876-8b13e4242a72

https://github.com/huacnlee/gpui-app/assets/5518/5316f9f0-58c8-4b99-bd79-eafffb38c3fc

https://github.com/huacnlee/gpui-app/assets/5518/0273e031-4426-4ab5-a41c-f7cbbb0e55bc

https://github.com/huacnlee/gpui-component/assets/5518/51622a5e-f51d-4ede-8cae-04cae703f8aa

Demo

main-app-windows.zip - Updated at 2024/07/01 main-app-windows.zip - Updated at 2024/06/29

TODO

  • Theming
  • TextField
    • Ctrl+a, e to move cursor to start/end
    • Copy, Cut, Paste by keyboard
    • ContextMenu to let user copy, cut, paste
    • Selection by mouse, drag to select text
    • Cursor blinking
    • Textarea
    • Input icon
  • Button
    • Button with Icon
    • IconButton
    • Glost / Outline Button
  • Label
  • Icon
  • Checkbox
    • With label
  • Switch
    • With Label (Left, Right side)
    • Toggle Animation
  • Radio & RadioGroup
  • Dropdown
  • Tabs
    • Tab
    • TabBar
  • Notification
  • Tooltip
  • Popover
  • Dockpanel
  • Splitter
  • List
    • A complex List example.
  • Table
    • row, column selection
    • Left, Right / Up, Down to selection column or row.
    • Horizontal scroll
    • Vertical scroll
    • Column resizing
    • Column ordering
    • Sort event emit
    • SimpleTable

How to build

cargo run

License

There have a part of UI components from Zed, that are under GPL v3.0 license.

  • workspace
  • scrollbar

Other UI components are under Apache License.