Mercurial > libervia-desktop-kivy
comparison cagou/kv/root_widget.kv @ 347:bf9474e164f3
core (RootWidget): a red "plug" symbol is now shown when profile is not connected.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Jan 2020 16:24:57 +0100 |
parents | 1b835bcfa663 |
children | 5d994be1161b |
comparison
equal
deleted
inserted
replaced
346:7b9a0e57df53 | 347:bf9474e164f3 |
---|---|
90 notifs_icon: notifs_icon | 90 notifs_icon: notifs_icon |
91 size_hint: 1, None | 91 size_hint: 1, None |
92 height: self.HEIGHT | 92 height: self.HEIGHT |
93 padding: app.MARGIN_LEFT, 0, app.MARGIN_RIGHT, 0 | 93 padding: app.MARGIN_LEFT, 0, app.MARGIN_RIGHT, 0 |
94 IconButton: | 94 IconButton: |
95 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_48.png") if root.notes else '' | 95 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_48.png") |
96 allow_stretch: True | 96 allow_stretch: True |
97 size_hint: None, None | 97 size_hint: None, None |
98 pos_hint: {'center_y': .5} | 98 pos_hint: {'center_y': .5} |
99 height: dp(25) | 99 height: dp(25) |
100 width: self.norm_image_size[0] | 100 width: dp(35) if root.notes else 0 |
101 opacity: 1 if root.notes else 0 | |
101 on_release: root.notes_drop.open(self) if root.notes else None | 102 on_release: root.notes_drop.open(self) if root.notes else None |
102 ScreenManager: | 103 ScreenManager: |
103 id: manager | 104 id: manager |
104 NotifsIcon: | 105 NotifsIcon: |
105 id: notifs_icon | 106 id: notifs_icon |
106 allow_stretch: True | 107 allow_stretch: True |
107 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_miroir_48.png") if self.notifs else '' | 108 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_miroir_48.png") |
108 size_hint: None, None | 109 size_hint: None, None |
109 pos_hint: {'center_y': .5} | 110 pos_hint: {'center_y': .5} |
110 height: dp(25) | 111 height: dp(25) |
111 width: self.norm_image_size[0] | 112 width: dp(35) if self.notifs else 0 |
113 opacity: 1 if self.notifs else 0 | |
114 Symbol: | |
115 id: disconnected_icon | |
116 size_hint: None, 1 | |
117 pos_hint: {'center_y': .5} | |
118 font_size: dp(23) | |
119 width: 0 if app.connected else dp(30) | |
120 opacity: 0 if app.connected else 1 | |
121 symbol: "plug" | |
122 color: 0.80, 0.0, 0.0, 1 | |
112 | 123 |
113 <RootMenus>: | 124 <RootMenus>: |
114 size_hint: 1, None | 125 size_hint: 1, None |
115 pos_hint: {'top': 1} | 126 pos_hint: {'top': 1} |
116 | 127 |