T13b Trees: Tree, TreeNode, TreeSelect, Outline, Disclosure (review pending: codex 401)
This commit is contained in:
22 files changed
+1969
-94
No files matched your search
@@ -1,5 +1,6 @@
|
||||
mod long;
|
||||
mod rows;
|
||||
mod trees;
|
||||
|
||||
use gpui::{AnyElement, App, IntoElement, ParentElement, Window, div};
|
||||
|
||||
@@ -25,6 +26,22 @@ const SCRIPT: &[Step] = &[
|
||||
Step::Swipe("swipe-row", -120.0),
|
||||
Step::Wait(500),
|
||||
Step::Shot("swiped-open"),
|
||||
Step::DownAt("tree", 40.0, 102.0),
|
||||
Step::UpAt("tree", 40.0, 102.0),
|
||||
Step::Key("right"),
|
||||
Step::Wait(200),
|
||||
Step::Shot("tree-open"),
|
||||
Step::DownAt("tree", 60.0, 214.0),
|
||||
Step::DragTo("tree", 60.0, 46.0),
|
||||
Step::Wait(100),
|
||||
Step::Shot("tree-dragging"),
|
||||
Step::UpAt("tree", 60.0, 46.0),
|
||||
Step::Wait(200),
|
||||
Step::Shot("tree-moved"),
|
||||
Step::DownAt("outline", 40.0, 150.0),
|
||||
Step::UpAt("outline", 40.0, 150.0),
|
||||
Step::Wait(500),
|
||||
Step::Shot("outline-moved"),
|
||||
Step::Rest,
|
||||
];
|
||||
|
||||
@@ -37,5 +54,9 @@ fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
||||
.child(long::virtual_list(cx))
|
||||
.child(long::infinite(window, cx))
|
||||
.child(long::grouped(cx))
|
||||
.child(trees::tree(window, cx))
|
||||
.child(trees::checkbox(window, cx))
|
||||
.child(trees::select(window, cx))
|
||||
.child(trees::outline(window, cx))
|
||||
.into_any_element()
|
||||
}
|
||||
Reference in new issue
Block a user