Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.kv @ 426:d3a6ae859556
chat: image attachments collection, first draft:
when more than one image is attached in a message, they are collected and a dedicated
attachment item is shown. Opening this item will launch the carousel with all collected
images.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 26 Feb 2020 22:07:15 +0100 |
parents | 13884aac1220 |
children | aa204c813f07 |
comparison
equal
deleted
inserted
replaced
425:13884aac1220 | 426:d3a6ae859556 |
---|---|
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('url', root.data.get('path')) |
67 anim_delay: -1 | 67 anim_delay: -1 |
68 | |
69 | |
70 <AttachmentImagesCollectionItem>: | |
71 cols: 2 | |
72 size_hint: None, None | |
73 size: dp(150), dp(150) | |
74 padding: dp(5) | |
75 spacing: dp(2) | |
76 canvas.before: | |
77 Color: | |
78 rgb: app.c_prim | |
79 RoundedRectangle: | |
80 radius: [dp(5)] | |
81 pos: self.pos | |
82 size: self.size | |
83 Color: | |
84 rgb: 0, 0, 0, 1 | |
85 Line: | |
86 rounded_rectangle: self.x, self.y, self.width, self.height, dp(5) | |
68 | 87 |
69 | 88 |
70 <AttachmentsLayout>: | 89 <AttachmentsLayout>: |
71 attachments: self | 90 attachments: self |
72 size_hint: 1, None | 91 size_hint: 1, None |