use agent::orbs::{Orb, OrbSize, OrbState};
let orb = cx.new(|_| Orb::new().state(OrbState::Searching).size(OrbSize::Inline));
let status = orb.read(cx).state_value().label(); // the line beside it
orb.update(cx, |orb, cx| orb.set_state(OrbState::Reasoning, cx));- An orb kept mounted while scrolled off screen keeps ticking; call
set_visible(false)or unmount it. OrbStateis#[non_exhaustive]; match with a wildcard arm, or uselabel/as_str.orb_element(state, size, t, &frame)paints for a host that ticks its own clock. Keep oneframeper orb;t = 0.6is the still frame.- Ink is monochrome on a transparent background.
OrbTheme::Dark/Lightpin it for a surface that is not the window's.