Mercurial > libervia-desktop-kivy
comparison src/cagou/kv/root_widget.kv @ 62:1922506846be
design fixes:
- adjust sizes using sp/dp so it adapts on different screen resolutions
- use a shorter sentence for profile manager label, so it appears better on small screens
- various design adjustment to appear correclty on different screen size
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 04 Dec 2016 21:34:30 +0100 |
parents | bd3ecac18870 |
children | 3608fef1857d |
comparison
equal
deleted
inserted
replaced
61:0b7f10de416e | 62:1922506846be |
---|---|
52 notifs_icon: notifs_icon | 52 notifs_icon: notifs_icon |
53 size_hint: 1, None | 53 size_hint: 1, None |
54 height: dp(35) | 54 height: dp(35) |
55 IconButton: | 55 IconButton: |
56 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") |
57 allow_stretch: True | |
57 size_hint: None, 1 | 58 size_hint: None, 1 |
58 width: self.texture_size[0] | 59 width: self.texture_size[0] |
59 on_release: root.notes_drop.open(self) if root.notes else None | 60 on_release: root.notes_drop.open(self) if root.notes else None |
60 ScreenManager: | 61 ScreenManager: |
61 id: manager | 62 id: manager |
62 NotifsIcon: | 63 NotifsIcon: |
63 id: notifs_icon | 64 id: notifs_icon |
65 allow_stretch: True | |
64 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if self.notifs else app.expand("{media}/misc/black.png") | 66 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 | 67 size_hint: None, 1 |
66 width: self.texture_size[0] | 68 width: self.texture_size[0] |
67 | 69 |