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 8, 2024
1 parent c029948 commit 6371e5d
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 6371e5d

Please sign in to comment.