find-replace
Builds FindReplace HighlightedText SearchField Select TextArea TextInput


The code that drew it
A still frame holds a repeating animation at its first frame and a one-shot at its last, because a still of a moving thing is not reproducible. Run the gallery to review motion.
fn find_replace(window: &mut Window, cx: &mut App) -> AnyElement {
ensure_search(window, cx);
let replace = cx.global::<SceneSearch>().replace.clone();
let theme = cx.theme().clone();
stack(&theme)
.w(px(620.0))
// Replace all says how many before it does any, so nobody agrees to a
// number they were never shown.
.child(caption(
&theme,
"replace all names its count before it acts",
))
.child(replace)
.into_any_element()
}