annotate libervia/desktop_kivy/kv/common_widgets.kv @ 508:d87b9a6b0b69

doc (calls): updated documentation to describe the new UI features: fix 425
author Goffi <goffi@goffi.org>
date Wed, 25 Oct 2023 15:29:33 +0200
parents b3cedbee561d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
493
b3cedbee561d refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
Goffi <goffi@goffi.org>
parents: 491
diff changeset
1 #Libervia Desktop-Kivy
461
3c9ba4a694ef dates update
Goffi <goffi@goffi.org>
parents: 424
diff changeset
2 # Copyright (C) 2016-2021 Jérôme Poisson (goffi@goffi.org)
237
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
3
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
4 # This program is free software: you can redistribute it and/or modify
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
5 # it under the terms of the GNU Affero General Public License as published by
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
6 # the Free Software Foundation, either version 3 of the License, or
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
7 # (at your option) any later version.
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
8
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
12 # GNU Affero General Public License for more details.
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
13
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
14 # You should have received a copy of the GNU Affero General Public License
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
16
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
17
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
18 <ItemWidget>:
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
19 size_hint: None, None
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
20 width: self.base_width
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
21 height: self.minimum_height
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
22 orientation: 'vertical'
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
23
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
24
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
25 <DeviceWidget>:
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
26 Symbol:
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
27 size_hint: 1, None
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
28 height: dp(80)
247
cf61a011f731 core (notes), common (symbol): added an icon showing note level:
Goffi <goffi@goffi.org>
parents: 237
diff changeset
29 font_size: dp(40)
491
203755bbe0fe massive refactoring from camelCase -> snake_case. See backend commit log for more details
Goffi <goffi@goffi.org>
parents: 461
diff changeset
30 symbol: root.get_symbol()
237
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
31 color: 0, 0, 0, 1
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
32 Label:
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
33 size_hint: None, None
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
34 width: dp(100)
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
35 font_size: sp(14)
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
36 text_size: dp(95), None
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
37 size: self.texture_size
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
38 text: root.name
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
39 halign: 'center'
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
40
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
41
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
42 <CategorySeparator>:
059c5b39032d plugin file sharing: moved common discovery widgets to new core.common_widgets module
Goffi <goffi@goffi.org>
parents:
diff changeset
43 size_hint: 1, None
392
d7948d2c1cc6 common widgets: use a different colour + bigger font size + bold for CategorySeparator
Goffi <goffi@goffi.org>
parents: 282
diff changeset
44 height: sp(35)
d7948d2c1cc6 common widgets: use a different colour + bigger font size + bold for CategorySeparator
Goffi <goffi@goffi.org>
parents: 282
diff changeset
45 bold: True
d7948d2c1cc6 common widgets: use a different colour + bigger font size + bold for CategorySeparator
Goffi <goffi@goffi.org>
parents: 282
diff changeset
46 font_size: sp(20)
d7948d2c1cc6 common widgets: use a different colour + bigger font size + bold for CategorySeparator
Goffi <goffi@goffi.org>
parents: 282
diff changeset
47 color: app.c_sec
424
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
48
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
49 <ImageViewer>:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
50 do_rotation: False
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
51 AsyncImage:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
52 source: root.source
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
53 allow_stretch: True,
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
54
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
55
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
56 <ImagesGallery>:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
57 carousel: carousel
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
58 canvas.before:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
59 Color:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
60 rgba: 0, 0, 0, 1
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
61 Rectangle:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
62 pos: self.pos
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
63 size: self.size
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
64 Carousel:
027fad764864 common widgets: ImagesGallery first draft:
Goffi <goffi@goffi.org>
parents: 392
diff changeset
65 id: carousel