Skip to content

Commit 0bc9f79

Browse files
committed
Added rounded corners on images
1 parent 8bfa083 commit 0bc9f79

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/custom_widgets/message_widget.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ def __init__(self, image_path:str):
294294
tooltip_text=_("Missing Image")
295295
)
296296
image_texture.update_property([4], [_("Missing image")])
297+
self.set_overflow(1)
297298
self.connect("clicked", lambda button, file_path=os.path.join(head, '{selected_chat}', last_dir, file_name): window.preview_file(file_path, 'image', None))
298299

299300
class image_container(Gtk.ScrolledWindow):

src/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.chat_image_button {
55
padding: 0;
66
}
7+
.chat_image_button, .chat_image_button image {
8+
border-radius: 10px;
9+
}
710
.editing_message_textview {
811
border-radius: 5px;
912
padding: 5px;

0 commit comments

Comments
 (0)