Skip to content

Commit

Permalink
Add filename tooltip for images
Browse files Browse the repository at this point in the history
Hovering over an image with your cursor will now display a tooltip containing the filename.
This solves the difficulty of seeing what an image's file name is and makes it much more convenient.
  • Loading branch information
Alphastaire committed Aug 7, 2024
1 parent 1ce9900 commit c74742c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/src/ui/conversation_content_view/file_image_widget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public class FileImageWidget : Box {
image_overlay_toolbar.visible = false;
});

// Set tooltip to display the file name on hover
image.set_tooltip_text(file_name);

this.append(overlay);
}
}
Expand Down

0 comments on commit c74742c

Please sign in to comment.