annotate src/cagou/kv/common.kv @ 109:7631325e11f4

chat: added completion of header's input, any entity in cache containing the entered text is shown
author Goffi <goffi@goffi.org>
date Sun, 15 Jan 2017 21:21:29 +0100
parents f0cf44df8486
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
107
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
2 # Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org)
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
3
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
4 # This program is free software: you can redistribute it and/or modify
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
5 # it under the terms of the GNU Affero General Public License as published by
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
6 # the Free Software Foundation, either version 3 of the License, or
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
7 # (at your option) any later version.
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
8
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
12 # GNU Affero General Public License for more details.
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
13
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
14 # You should have received a copy of the GNU Affero General Public License
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
16
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
17
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
18 <JidWidget>:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
19 size_hint: None, None
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
20 height: dp(70)
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
21 canvas.before:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
22 Color:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
23 rgba: 0.2, 0.2, 0.2, 1
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
24 Rectangle:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
25 pos: self.pos
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
26 size: self.size
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
27 Image:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
28 source: root.getImage(self)
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
29 size_hint: None, None
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
30 size: dp(64), dp(64)
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
31 Label:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
32 bold: True
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
33 text: root.jid
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
34 text_size: self.size
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
35 halign: 'left'
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
36 valign: 'middle'
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
37 padding_x: dp(20)