Skip to content

Commit

Permalink
Added rounded corners on images
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffser committed Oct 11, 2024
1 parent 8bfa083 commit 0bc9f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/custom_widgets/message_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def __init__(self, image_path:str):
tooltip_text=_("Missing Image")
)
image_texture.update_property([4], [_("Missing image")])
self.set_overflow(1)
self.connect("clicked", lambda button, file_path=os.path.join(head, '{selected_chat}', last_dir, file_name): window.preview_file(file_path, 'image', None))

class image_container(Gtk.ScrolledWindow):
Expand Down
3 changes: 3 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
.chat_image_button {
padding: 0;
}
.chat_image_button, .chat_image_button image {
border-radius: 10px;
}
.editing_message_textview {
border-radius: 5px;
padding: 5px;
Expand Down

0 comments on commit 0bc9f79

Please sign in to comment.