annotate cagou/kv/common.kv @ 446:ffdf2390ea56

chat: fixed `source` assignment for `AttachmentImageItem`
author Goffi <goffi@goffi.org>
date Wed, 18 Mar 2020 20:26:21 +0100
parents efee0e0afb78
children 1dd6db69406a
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
282
1b835bcfa663 date update
Goffi <goffi@goffi.org>
parents: 274
diff changeset
2 # Copyright (C) 2016-2019 Jérôme Poisson (goffi@goffi.org)
107
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
397
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
18 <NotifLabel>:
410
2a58f3d756ad common: use light secondary colour instead of red for notification labels' background
Goffi <goffi@goffi.org>
parents: 404
diff changeset
19 background_color: app.c_sec_light
397
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
20 size_hint: None, None
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
21 text_size: None, root.height
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
22 padding_x: sp(5)
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
23 size: self.texture_size
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
24 bold: True
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
25 canvas.before:
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
26 Color:
410
2a58f3d756ad common: use light secondary colour instead of red for notification labels' background
Goffi <goffi@goffi.org>
parents: 404
diff changeset
27 # self.background_color doesn't seem initialized correctly on startup
2a58f3d756ad common: use light secondary colour instead of red for notification labels' background
Goffi <goffi@goffi.org>
parents: 404
diff changeset
28 # (maybe a Kivy bug? to be checked), thus we use the "or" below
2a58f3d756ad common: use light secondary colour instead of red for notification labels' background
Goffi <goffi@goffi.org>
parents: 404
diff changeset
29 rgb: self.background_color or app.c_sec_light
397
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
30 Ellipse:
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
31 size: self.size
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
32 pos: self.pos
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
33
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
34
322
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
35 <ContactItem>:
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
36 size_hint: None, None
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
37 width: self.base_width
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
38 height: self.minimum_height
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
39 orientation: 'vertical'
397
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
40 avatar: avatar
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
41 avatar_layout: avatar_layout
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
42 FloatLayout:
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
43 id: avatar_layout
322
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
44 size_hint: 1, None
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
45 height: dp(60)
397
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
46 Avatar:
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
47 id: avatar
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
48 pos_hint: {'x': 0, 'y': 0}
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
49 source: root.data.get('avatar') or app.default_avatar
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
50 allow_stretch: True
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
51 BoxLayout:
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
52 id: label_box
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
53 size_hint: 1, None
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
54 height: self.minimum_height
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
55 Label:
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
56 size_hint: 1, None
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
57 height: self.font_size + sp(5)
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
58 text_size: self.size
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
59 shorten: True
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
60 shorten_from: "right"
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
61 text: root.data.get('nick', root.jid.node or root.jid)
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
62 bold: True
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
63 valign: 'middle'
54f6a47cc60a core (common): added a notifications counter on ContactButton and use it in JidSelector:
Goffi <goffi@goffi.org>
parents: 391
diff changeset
64 halign: 'center'
322
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
65
e2b51663d8b8 core, android: new share widget + added Cagou to "share" menu:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
66
145
654b00fa3fdc core (common): renamed JidWidget to JidItem to avoid name conflict with XMLUI
Goffi <goffi@goffi.org>
parents: 134
diff changeset
67 <JidItem>:
193
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
68 size_hint: 1, None
274
7d5297984191 core, chat: UI improvments:
Goffi <goffi@goffi.org>
parents: 256
diff changeset
69 height: dp(68)
256
ba7b8cb7ddcd common: don't use anymore positional argument in JidItem
Goffi <goffi@goffi.org>
parents: 247
diff changeset
70 avatar: avatar
274
7d5297984191 core, chat: UI improvments:
Goffi <goffi@goffi.org>
parents: 256
diff changeset
71 padding: 0, dp(2), 0, dp(2)
107
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
72 canvas.before:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
73 Color:
193
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
74 rgba: self.bg_color
107
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
75 Rectangle:
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
76 pos: self.pos
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
77 size: self.size
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
78 Image:
256
ba7b8cb7ddcd common: don't use anymore positional argument in JidItem
Goffi <goffi@goffi.org>
parents: 247
diff changeset
79 id: avatar
107
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
80 size_hint: None, None
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
81 size: dp(64), dp(64)
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
82 Label:
193
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
83 size_hint: 1, 1
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
84 text_size: self.size
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
85 color: root.color
107
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
86 bold: True
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
87 text: root.jid
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
88 halign: 'left'
f0cf44df8486 JidWidget: first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
89 valign: 'middle'
193
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
90 padding_x: dp(5)
131
36fc269e2a32 core: changed default background color to white
Goffi <goffi@goffi.org>
parents: 126
diff changeset
91
193
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
92 <JidToggle>:
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
93 canvas.before:
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
94 Color:
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
95 rgba: self.selected_color if self.state == 'down' else self.bg_color
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
96 Rectangle:
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
97 pos: self.pos
284cb5c467b0 core (common): split JidItem in 3 classes:
Goffi <goffi@goffi.org>
parents: 178
diff changeset
98 size: self.size
131
36fc269e2a32 core: changed default background color to white
Goffi <goffi@goffi.org>
parents: 126
diff changeset
99
134
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
100 <Symbol>:
247
cf61a011f731 core (notes), common (symbol): added an icon showing note level:
Goffi <goffi@goffi.org>
parents: 218
diff changeset
101 width: dp(35)
cf61a011f731 core (notes), common (symbol): added an icon showing note level:
Goffi <goffi@goffi.org>
parents: 218
diff changeset
102 height: dp(35)
134
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
103 font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf')
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
104 text_size: self.size
247
cf61a011f731 core (notes), common (symbol): added an icon showing note level:
Goffi <goffi@goffi.org>
parents: 218
diff changeset
105 font_size: dp(30)
134
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
106 halign: 'center'
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
107 valign: 'middle'
215
254481ba2bae core (common): set width = height by default for Symbol + use a transparent background color by default
Goffi <goffi@goffi.org>
parents: 193
diff changeset
108 bg_color: 0, 0, 0, 0
134
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
109 canvas.before:
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
110 Color:
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
111 rgba: self.bg_color
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
112 Rectangle:
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
113 pos: self.pos
1cca97e27a69 core (common): new Symbol widget:
Goffi <goffi@goffi.org>
parents: 131
diff changeset
114 size: self.size
178
11ff8cd93659 common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents: 150
diff changeset
115
218
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
116 <SymbolLabel>:
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
117 size_hint: None, 1
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
118 width: self.minimum_width
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
119 symbol_wid: symbol_wid
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
120 label: label
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
121 Symbol:
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
122 id: symbol_wid
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
123 size_hint: None, 1
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
124 symbol: root.symbol
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
125 color: root.color
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
126 Label:
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
127 id: label
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
128 size_hint: None, 1
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
129 text_size: None, root.height
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
130 size: self.texture_size
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
131 padding_x: dp(5)
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
132 valign: 'middle'
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
133 text: root.text
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
134 bold: root.bold
30be583dbabc core (common): new SymbolLabel class to have a clickable area with a symbol and a label next to it.
Goffi <goffi@goffi.org>
parents: 215
diff changeset
135
416
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
136 <SymbolToggleLabel>:
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
137 color: 0, 0, 0, 1
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
138 canvas.before:
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
139 Color:
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
140 rgba: app.c_sec_light if self.state == 'down' else (0, 0, 0, 0)
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
141 RoundedRectangle:
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
142 pos: self.pos
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
143 size: self.size
3e2333a11f61 common: implemented SymbolToggleLabel:
Goffi <goffi@goffi.org>
parents: 410
diff changeset
144
178
11ff8cd93659 common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents: 150
diff changeset
145 <ActionSymbol>:
11ff8cd93659 common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents: 150
diff changeset
146 bg_color: 0, 0, 0, 0
11ff8cd93659 common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents: 150
diff changeset
147 color: app.c_sec_light
348
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
148
422
efee0e0afb78 core (common): moved simple_xhtml's image code to a generic "SizedImage" widget
Goffi <goffi@goffi.org>
parents: 416
diff changeset
149 <SizedImage>:
efee0e0afb78 core (common): moved simple_xhtml's image code to a generic "SizedImage" widget
Goffi <goffi@goffi.org>
parents: 416
diff changeset
150 size_hint: None, None
efee0e0afb78 core (common): moved simple_xhtml's image code to a generic "SizedImage" widget
Goffi <goffi@goffi.org>
parents: 416
diff changeset
151
348
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
152
404
f7476818f9fb core (common): JidSelector + behaviors various improvments:
Goffi <goffi@goffi.org>
parents: 397
diff changeset
153 <JidSelectorCategoryLayout>:
f7476818f9fb core (common): JidSelector + behaviors various improvments:
Goffi <goffi@goffi.org>
parents: 397
diff changeset
154 size_hint: 1, None
f7476818f9fb core (common): JidSelector + behaviors various improvments:
Goffi <goffi@goffi.org>
parents: 397
diff changeset
155 height: self.minimum_height
f7476818f9fb core (common): JidSelector + behaviors various improvments:
Goffi <goffi@goffi.org>
parents: 397
diff changeset
156 spacing: 0
f7476818f9fb core (common): JidSelector + behaviors various improvments:
Goffi <goffi@goffi.org>
parents: 397
diff changeset
157
348
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
158 <JidSelector>:
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
159 layout: layout
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
160 StackLayout:
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
161 id: layout
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
162 size_hint: 1, None
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
163 height: self.minimum_height
38fd457b2158 core (common, share_widget): new JidSelector widget:
Goffi <goffi@goffi.org>
parents: 322
diff changeset
164 spacing: 0