use motion::{Fade, Painter};
use ui::{icons, widgets::Layout};
theme
.nav_row(
Some(icons::glyph::LayoutGrid),
"Home",
self.route == Route::Home,
Fade::new(Painter::of(cx), "nav-home"),
)
.id("nav-home")
.on_click(cx.listener(|view, _, _, cx| view.go(Route::Home, cx)))- The
Fademust be stable across frames. - The row owns its hover. A trailing control that shows on hover paints with
motion::hover_blendon the row's fade, not anon_hoverof its own.