Mercurial > libervia-desktop-kivy
comparison cagou/kv/root_widget.kv @ 147:11d134eb51d7
core: fixed icon size hiding when notifs are reset + size adjust
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 Apr 2018 19:29:09 +0200 |
parents | 36fc269e2a32 |
children | 3a05dfa27f5e |
comparison
equal
deleted
inserted
replaced
146:87eebe4628b8 | 147:11d134eb51d7 |
---|---|
60 manager: manager | 60 manager: manager |
61 notifs_icon: notifs_icon | 61 notifs_icon: notifs_icon |
62 size_hint: 1, None | 62 size_hint: 1, None |
63 height: dp(35) | 63 height: dp(35) |
64 IconButton: | 64 IconButton: |
65 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else None | 65 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_48.png") if root.notes else '' |
66 allow_stretch: True | 66 allow_stretch: True |
67 size_hint: None, 1 | 67 size_hint: None, None |
68 pos_hint: {'center_y': .5} | |
69 height: dp(25) | |
68 width: self.norm_image_size[0] | 70 width: self.norm_image_size[0] |
69 on_release: root.notes_drop.open(self) if root.notes else None | 71 on_release: root.notes_drop.open(self) if root.notes else None |
70 ScreenManager: | 72 ScreenManager: |
71 id: manager | 73 id: manager |
72 NotifsIcon: | 74 NotifsIcon: |
73 id: notifs_icon | 75 id: notifs_icon |
74 allow_stretch: True | 76 allow_stretch: True |
75 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if self.notifs else None | 77 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_48.png") if self.notifs else '' |
76 size_hint: None, 1 | 78 size_hint: None, None |
77 width: self.norm_image_size[0] | 79 pos_hint: {'center_y': .5} |
80 height: dp(25) | |
78 | 81 |
79 <RootMenus>: | 82 <RootMenus>: |
80 size_hint: 1, None | 83 size_hint: 1, None |
81 pos_hint: {'top': 1} | 84 pos_hint: {'top': 1} |
82 | 85 |