Mercurial > libervia-desktop-kivy
changeset 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 | 87eebe4628b8 |
children | d1408a98c505 |
files | cagou/kv/root_widget.kv |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/cagou/kv/root_widget.kv Sat Apr 14 16:36:29 2018 +0200 +++ b/cagou/kv/root_widget.kv Sat Apr 14 19:29:09 2018 +0200 @@ -62,9 +62,11 @@ size_hint: 1, None height: dp(35) IconButton: - source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else None + source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_48.png") if root.notes else '' allow_stretch: True - size_hint: None, 1 + size_hint: None, None + pos_hint: {'center_y': .5} + height: dp(25) width: self.norm_image_size[0] on_release: root.notes_drop.open(self) if root.notes else None ScreenManager: @@ -72,9 +74,10 @@ NotifsIcon: id: notifs_icon allow_stretch: True - source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if self.notifs else None - size_hint: None, 1 - width: self.norm_image_size[0] + source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_48.png") if self.notifs else '' + size_hint: None, None + pos_hint: {'center_y': .5} + height: dp(25) <RootMenus>: size_hint: 1, None