comparison cagou/kv/common.kv @ 322:e2b51663d8b8

core, android: new share widget + added Cagou to "share" menu: - new intent filter to add Cagou to share menu for all media types - minimum Kivy version is now 1.11.0 - new "Share" widget to display data to share via SàT and select the target - new core.platform_ module (the suffix "_" avoid trouble with standard "platform" module), for platform specific code. - Android intent are now checked on startup and "on_new_intent" events - if a android.intent.action.SEND action is received (i.e. some data is shared), the "Share" widget is shown - new Cagou.share method to share data using "Share" widget - new Cagou.getAncestorWidget method to easily retrieve an instance of a specific class in a widget's ancestors - ContactList's Avatar and ContactItem widgets have been moved to core.common
author Goffi <goffi@goffi.org>
date Fri, 06 Dec 2019 13:23:03 +0100
parents 1b835bcfa663
children 38fd457b2158
comparison
equal deleted inserted replaced
321:a6eb154ba266 322:e2b51663d8b8
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Affero General Public License for more details. 12 # GNU Affero General Public License for more details.
13 13
14 # You should have received a copy of the GNU Affero General Public License 14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
18 <ContactItem>:
19 size_hint: None, None
20 width: self.base_width
21 height: self.minimum_height
22 orientation: 'vertical'
23 Avatar:
24 id: avatar
25 size_hint: 1, None
26 height: dp(60)
27 source: root.data.get('avatar') or app.default_avatar
28 allow_stretch: True
29 Label:
30 id: jid_label
31 size_hint: None, None
32 text_size: root.base_width, None
33 size: self.texture_size
34 text: root.jid
35 bold: True
36 valign: 'middle'
37 halign: 'center'
16 38
17 39
18 <JidItem>: 40 <JidItem>:
19 size_hint: 1, None 41 size_hint: 1, None
20 height: dp(68) 42 height: dp(68)