diff cagou/kv/common.kv @ 256:ba7b8cb7ddcd

common: don't use anymore positional argument in JidItem
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2019 20:24:48 +0100
parents cf61a011f731
children 7d5297984191
line wrap: on
line diff
--- a/cagou/kv/common.kv	Sat Jan 26 20:24:48 2019 +0100
+++ b/cagou/kv/common.kv	Sat Jan 26 20:24:48 2019 +0100
@@ -18,6 +18,7 @@
 <JidItem>:
     size_hint: 1, None
     height: dp(70)
+    avatar: avatar
     canvas.before:
         Color:
             rgba: self.bg_color
@@ -25,7 +26,7 @@
             pos: self.pos
             size: self.size
     Image:
-        source: root.getImage(self)
+        id: avatar
         size_hint: None, None
         size: dp(64), dp(64)
     Label: