Add hover styling support

This commit is contained in:
Nathan Sobo 2023-08-23 09:08:05 -06:00
parent 1bc4f22373
commit 569d99a5a1
8 changed files with 53 additions and 22 deletions

View file

@ -1363,7 +1363,14 @@ impl AppContext {
window: handle,
}));
let mut window = Window::new(handle, platform_window, self, build_root_view);
let mouse_position = self.platform.mouse_position();
let mut window = Window::new(
handle,
platform_window,
mouse_position,
self,
build_root_view,
);
let mut cx = WindowContext::mutable(self, &mut window, handle);
cx.layout(false).expect("initial layout should not error");
let scene = cx.paint().expect("initial paint should not error");