comparison cagou/plugins/plugin_wid_chat.kv @ 433:aa204c813f07

chat: attachment preview: - if there is not already one, a preview is generated for images collection thumbnails, instead of using the full size image. - for images attachment, local path is now used if present, before URL.
author Goffi <goffi@goffi.org>
date Sun, 01 Mar 2020 22:11:25 +0100
parents d3a6ae859556
children 977158b56ce6
comparison
equal deleted inserted replaced
432:36c3f1c02d33 433:aa204c813f07
61 size: self.minimum_width, self.minimum_height 61 size: self.minimum_width, self.minimum_height
62 image: image 62 image: image
63 orientation: "vertical" 63 orientation: "vertical"
64 SizedImage: 64 SizedImage:
65 id: image 65 id: image
66 source: root.data.get('url', root.data.get('path')) 66 source: root.data.get('preview') or root.data.get('path') or root.data.get('url')
67 anim_delay: -1 67 anim_delay: -1
68 68
69 69
70 <AttachmentImagesCollectionItem>: 70 <AttachmentImagesCollectionItem>:
71 cols: 2 71 cols: 2