@@ -606,9 +606,8 @@ impl Widget for RoomScreen {
606606 let reaction_list = wr. reaction_list ( ids ! ( reaction_list) ) ;
607607 if let RoomScreenTooltipActions :: HoverInReactionButton {
608608 widget_rect,
609- bg_color,
610609 reaction_data,
611- } = reaction_list. hover_in ( actions) {
610+ } = reaction_list. hovered_in ( actions) {
612611 let Some ( _tl_state) = self . tl_state . as_ref ( ) else { continue } ;
613612 let tooltip_text_arr: Vec < String > = reaction_data. reaction_senders . iter ( ) . map ( |( sender, _react_info) | {
614613 user_profile_cache:: get_user_profile_and_room_member ( cx, sender. clone ( ) , & reaction_data. room_id , true ) . 0
@@ -620,40 +619,46 @@ impl Widget for RoomScreen {
620619 cx. widget_action (
621620 room_screen_widget_uid,
622621 & scope. path ,
623- TooltipAction :: HoverIn ( tooltip_text, CalloutTooltipOptions {
622+ TooltipAction :: HoverIn {
623+ text : tooltip_text,
624624 widget_rect,
625- bg_color,
626- position : TooltipPosition :: Bottom ,
627- ..Default :: default ( )
628- } )
625+ options : CalloutTooltipOptions {
626+ position : TooltipPosition :: Bottom ,
627+ ..Default :: default ( )
628+ } ,
629+ } ,
629630 ) ;
630631 }
631- if reaction_list. hover_out ( actions) {
632+
633+ if reaction_list. hovered_out ( actions) {
632634 cx. widget_action (
633635 room_screen_widget_uid,
634636 & scope. path ,
635- TooltipAction :: HoverOut
637+ TooltipAction :: HoverOut ,
636638 ) ;
637639 }
640+
638641 let avatar_row_ref = wr. avatar_row ( ids ! ( avatar_row) ) ;
639642 if let RoomScreenTooltipActions :: HoverInReadReceipt {
640643 widget_rect,
641- bg_color,
642644 read_receipts
643645 } = avatar_row_ref. hover_in ( actions) {
644646 let Some ( room_id) = & self . room_id else { return ; } ;
645647 let tooltip_text= room_read_receipt:: populate_tooltip ( cx, read_receipts, room_id) ;
646648 cx. widget_action (
647649 room_screen_widget_uid,
648650 & scope. path ,
649- TooltipAction :: HoverIn ( tooltip_text, CalloutTooltipOptions {
651+ TooltipAction :: HoverIn {
652+ text : tooltip_text,
650653 widget_rect,
651- bg_color,
652- position : TooltipPosition :: Bottom ,
653- ..Default :: default ( )
654- } )
654+ options : CalloutTooltipOptions {
655+ position : TooltipPosition :: Left ,
656+ ..Default :: default ( )
657+ } ,
658+ } ,
655659 ) ;
656660 }
661+
657662 if avatar_row_ref. hover_out ( actions) {
658663 cx. widget_action (
659664 room_screen_widget_uid,
@@ -2320,18 +2325,14 @@ pub enum RoomScreenTooltipActions {
23202325 HoverInReadReceipt {
23212326 /// The rect of the moused over widget
23222327 widget_rect : Rect ,
2323- /// Color of the background, default is black
2324- bg_color : Option < Vec4 > ,
23252328 /// Includes the list of users who have seen this event
23262329 read_receipts : indexmap:: IndexMap < matrix_sdk:: ruma:: OwnedUserId , Receipt > ,
23272330 } ,
23282331 /// Mouse over event when the mouse is over the reaction button.
23292332 HoverInReactionButton {
2330- /// The rect of the moused over widget
2333+ /// The rectangle (bounds) of the hovered- over widget.
23312334 widget_rect : Rect ,
2332- /// Color of the background, default is black
2333- bg_color : Option < Vec4 > ,
2334- /// Includes the list of users who have reacted to the emoji
2335+ /// Includes the list of users who have reacted to the emoji.
23352336 reaction_data : ReactionData ,
23362337 } ,
23372338 /// Mouse out event and clear tooltip.
0 commit comments