comparison cagou/kv/cagou_widget.kv @ 274:7d5297984191

core, chat: UI improvments: - better aligment of elements on left and right border, using new app.MARGIN_LEFT and app.MARGIN_RIGHT constants - Better sizing of JidItem, avoiding the avatar to touch the bottom border
author Goffi <goffi@goffi.org>
date Wed, 20 Mar 2019 09:29:44 +0100
parents a676cb07c1cb
children 1b835bcfa663
comparison
equal deleted inserted replaced
273:0ef216091f2b 274:7d5297984191
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Affero General Public License for more details. 12 # GNU Affero General Public License for more details.
13 13
14 # You should have received a copy of the GNU Affero General Public License 14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17 #:import C cagou.core.constants.Const
16 18
17 19
18 <HeaderWidgetChoice>: 20 <HeaderWidgetChoice>:
19 canvas.before: 21 canvas.before:
20 Color: 22 Color:
57 BoxLayout: 59 BoxLayout:
58 id: header_box 60 id: header_box
59 size_hint: 1, None 61 size_hint: 1, None
60 height: dp(32) 62 height: dp(32)
61 spacing: dp(3) 63 spacing: dp(3)
64 padding: app.MARGIN_LEFT, 0, app.MARGIN_RIGHT, 0
62 HeaderWidgetCurrent: 65 HeaderWidgetCurrent:
63 plugin_info: root.plugin_info 66 plugin_info: root.plugin_info
64 size_hint: None, 1 67 size_hint: None, 1
65 width: self.height 68 width: self.height
66 on_release: root.selector.open(self) 69 on_release: root.selector.open(self)