comparison src/cagou/kv/root_widget.kv @ 33:c21d1be2e54c

core: XMLUI notifications coming from backend are handled: when a notification from backend is coming, it's added to a notification icon (on the right for important notifications which need user action, while left icon is used for notes). If user click on the notification icon, the XMLUI replace the main widget with a rise animation. When action is finished, ui is closed with a fall out animation.
author Goffi <goffi@goffi.org>
date Sun, 21 Aug 2016 21:41:52 +0200
parents 8b5827c43155
children bd3ecac18870
comparison
equal deleted inserted replaced
32:fdaf914e2729 33:c21d1be2e54c
47 height: 50 47 height: 50
48 on_release: del root.notes[:]; root.dismiss() 48 on_release: del root.notes[:]; root.dismiss()
49 49
50 <RootHeadWidget>: 50 <RootHeadWidget>:
51 manager: manager 51 manager: manager
52 notifs_icon: notifs_icon
52 size_hint: 1, None 53 size_hint: 1, None
53 height: 35 54 height: 35
54 IconButton: 55 IconButton:
55 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else app.expand("{media}/misc/black.png") 56 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else app.expand("{media}/misc/black.png")
56 size_hint: None, 1 57 size_hint: None, 1
57 width: self.texture_size[0] 58 width: self.texture_size[0]
58 on_release: root.notes_drop.open(self) if root.notes else None 59 on_release: root.notes_drop.open(self) if root.notes else None
59 ScreenManager: 60 ScreenManager:
60 id: manager 61 id: manager
62 NotifsIcon:
63 id: notifs_icon
64 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if self.notifs else app.expand("{media}/misc/black.png")
65 size_hint: None, 1
66 width: self.texture_size[0]
67