Mercurial > libervia-desktop-kivy
annotate libervia/desktop_kivy/plugins/plugin_wid_widget_selector.kv @ 499:f387992d8e37
plugins: new "call" plugin for A/V calls:
this is the base implementation for calls plugin, handling one2one calls.
For now, the interface is very basic, call is done by specifying the bare jid of the
destinee, then press the "call" button. Incoming calls are automatically accepted.
rel 424
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 04 Oct 2023 22:54:36 +0200 |
parents | b3cedbee561d |
children |
rev | line source |
---|---|
493
b3cedbee561d
refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
Goffi <goffi@goffi.org>
parents:
461
diff
changeset
|
1 #Libervia Desktop-Kivy |
461 | 2 # Copyright (C) 2016-2021 Jérôme Poisson (goffi@goffi.org) |
12 | 3 |
4 # This program is free software: you can redistribute it and/or modify | |
5 # it under the terms of the GNU Affero General Public License as published by | |
6 # the Free Software Foundation, either version 3 of the License, or | |
7 # (at your option) any later version. | |
8 | |
9 # This program is distributed in the hope that it will be useful, | |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 # GNU Affero General Public License for more details. | |
13 | |
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/>. | |
16 | |
17 <WidgetSelItem>: | |
18
790dbc5c4e89
plugin widget selector: display improvment + host profiles are now used by default
Goffi <goffi@goffi.org>
parents:
15
diff
changeset
|
18 size_hint: (1, None) |
62 | 19 height: dp(40) |
169
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
20 item: item |
12 | 21 Widget: |
169
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
22 BoxLayout: |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
23 id: item |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
24 size_hint: None, 1 |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
25 spacing: dp(10) |
179
7177fe2d9725
common: new ActionIcon widget which display symbol or image icon according to what is specified in plugin_info
Goffi <goffi@goffi.org>
parents:
169
diff
changeset
|
26 ActionIcon: |
7177fe2d9725
common: new ActionIcon widget which display symbol or image icon according to what is specified in plugin_info
Goffi <goffi@goffi.org>
parents:
169
diff
changeset
|
27 plugin_info: root.plugin_info |
169
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
28 size_hint: None, 1 |
179
7177fe2d9725
common: new ActionIcon widget which display symbol or image icon according to what is specified in plugin_info
Goffi <goffi@goffi.org>
parents:
169
diff
changeset
|
29 width: self.height |
169
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
30 Label: |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
31 text: root.plugin_info["name"] |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
32 bold: True |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
33 valign: 'middle' |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
34 font_size: sp(20) |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
35 size_hint: None, 1 |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
36 width: self.texture_size[0] |
12 | 37 Widget: |
169
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
38 |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
39 |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
40 <WidgetSelector>: |
6a288d4a493f
widget selector: replaced deprecated ListView by BoxLayout
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
41 spacing: dp(10) |
365
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
42 container: container |
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
43 ScrollView: |
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
44 BoxLayout: |
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
45 orientation: "vertical" |
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
46 size_hint: 1, None |
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
47 height: self.minimum_height |
9c6fe392d623
core (widgets_handler): use a StencilView + BoxLayout instead of ScrollView as wrapper:
Goffi <goffi@goffi.org>
parents:
353
diff
changeset
|
48 id: container |