T48d Docs · Getting started passes review

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 12:30:09 -04:00
1 parent 1303a407fc
commit b41a9d3565
3 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
# Getting started
An Ely app is a GPUI app with three more parts: Ely's assets, one call to `init`, and a root `FocusScope` around each window's content.
An Ely app is a GPUI app with four more parts: Ely's assets, one call to `init`, a root `FocusScope` around each window's content, and colors from the theme.
## Four steps
## Four parts
| Step | Why |
| Part | Why |
| --- | --- |
| `gpui_platform::application().with_assets(Assets)` | Ely embeds its icons and fonts. `init` panics without them. |
| `ely_gpui_component::init(cx)` | Call once, before any window. It registers the fonts, sets the theme, and binds Tab, Shift-Tab and the keys of text fields, the code editor, documents and, natively, the terminal. |