annotate src/cagou.kv @ 0:160cc95ad7ea

initial commit: - basic SàT/QuickApp integration - basic XMLUI - profile manager first draft
author Goffi <goffi@goffi.org>
date Sat, 26 Mar 2016 16:20:52 +0100
parents
children 189b76859110
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 # Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org)
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
3
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 # This program is free software: you can redistribute it and/or modify
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 # it under the terms of the GNU Affero General Public License as published by
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 # the Free Software Foundation, either version 3 of the License, or
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 # (at your option) any later version.
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
8
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 # GNU Affero General Public License for more details.
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
13
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 # You should have received a copy of the GNU Affero General Public License
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
16
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 <ProfileManager>:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 Label:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 text: "Profile Manager"
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
20 size_hint: 1,0.05
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
21
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 <ProfileScreen>:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 layout: layout
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 BoxLayout:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 id: layout
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
26 orientation: 'vertical'
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
27
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
28 Label:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
29 text: "Select a profile to connect with, or create a new one"
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 size_hint: 1,0.05
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
31
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 GridLayout:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 cols: 2
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 size_hint: 1, 0.1
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
35 Button:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
36 size_hint: 1, 0.1
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
37 text: "New"
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
38 Button:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
39 text: "Delete"
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
40 size_hint: 1, 0.1
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
41
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
42 <ConnectButton>:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
43 text: "Connect"
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
44 size_hint: 1, 0.1
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
45
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
46 <ProfileItem>:
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
47 background_normal: "button_selected.png" if self.is_selected else "button.png"
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
48 deselected_color: 1,1,1,1
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
49 selected_color: 1,1,1,1
160cc95ad7ea initial commit:
Goffi <goffi@goffi.org>
parents:
diff changeset
50 color: 0,0,0,1