clean up
This commit is contained in:
@@ -80,7 +80,7 @@ GPUI is a UI framework which also provides primitives for state and concurrency
|
||||
- `crates/icons` owns icon resolution; components reference icons by semantic role — no glyph names, unicode symbols, or SVG paths anywhere else.
|
||||
- `crates/core` and its sibling crates own components: each one is a small self-contained implementation gated behind its own cargo feature. Features are additive, gate whole modules only, and may depend on other features. Behavior and presentation live together. No separate behavior layer — promote a shared helper only when a third component needs it.
|
||||
- Components are written in-tree. Other UI toolkits are read for API ideas only; never port their code or depend on them.
|
||||
- gpui/gpui_platform come from zed's repository at the rev pinned in `docs/PLAN.md`; bump the pin deliberately and re-verify.
|
||||
- gpui/gpui_platform come from zed's repository at the rev pinned in the workspace `Cargo.toml`; bump the pin deliberately and re-verify.
|
||||
- `SharedString` for UI text retained across frames; `String` only for mutable buffers.
|
||||
- Behavioral seams use private fields + builders/readers. Boolean readers are `is_`/`has_`; general builders use `with_`; in-place mutation uses `set_`; callbacks use `on_`; retained models end in `State`; pluggable owners in `Delegate`/`Provider`.
|
||||
- Never invent an API: search the gpui source for the real signature before writing code.
|
||||
|
||||
Reference in New Issue
Block a user