Add hover styling support
This commit is contained in:
parent
1bc4f22373
commit
569d99a5a1
8 changed files with 53 additions and 22 deletions
|
@ -70,6 +70,7 @@ impl Window {
|
|||
pub fn new<V, F>(
|
||||
handle: AnyWindowHandle,
|
||||
platform_window: Box<dyn platform::Window>,
|
||||
mouse_position: Vector2F,
|
||||
cx: &mut AppContext,
|
||||
build_view: F,
|
||||
) -> Self
|
||||
|
@ -97,7 +98,7 @@ impl Window {
|
|||
hovered_region_ids: Default::default(),
|
||||
clicked_region_ids: Default::default(),
|
||||
clicked_region: None,
|
||||
mouse_position: vec2f(0., 0.),
|
||||
mouse_position,
|
||||
titlebar_height,
|
||||
appearance,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue