Re-vendor the native UI kit at 278430d

- Upstream merged core, data, editor, and utils into a single `components` crate: `ui::button`, `ui::tabs`, `ui::code`, `ui::tree`, `ui::sidebar` are flat, and `h_flex`/`v_flex`/`StyledExt` live in `ui::common` and `ui::layout`.
- Adopts the new wrapper-less component module tree, the merged theme/icon updates, and the relocated editor grammars.
- Titlebar repo tabs use the new `TabsVariant::Titlebar` capsule sizing.
- Doc examples now import from `ui::`, so all 44 doctests compile; the clipboard sample no longer names the kit crate.
- docs/ui-gaps.md records that `ui` has no dock/view-registry API instead of the deleted `DockState`.
This commit is contained in:
2026-11-17 09:49:10 +07:00
parent 71f4ec0b6b
commit 8f96a2cc16
80 changed files with 1524 additions and 2037 deletions
+13 -1
View File
@@ -1,4 +1,16 @@
//! A scrollable container with an overlay scrollbar.
//! Renders children in a scrollable pane with an overlay [`Scrollbar`].
//!
//! # Examples
//!
//! ```no_run
//! use gpui::{div, px, ParentElement as _, Styled as _};
//! use ui::scroll_area::{ScrollArea, ScrollAxes};
//!
//! let log = ScrollArea::new("event-log")
//! .axes(ScrollAxes::Vertical)
//! .h(px(320.))
//! .children((0..24).map(|line| div().child(format!("event {line}"))));
//! ```
use gpui::prelude::FluentBuilder as _;
use gpui::{