comparison libervia/desktop_kivy/plugins/plugin_wid_remote.kv @ 493:b3cedbee561d

refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 18:26:16 +0200
parents cagou/plugins/plugin_wid_remote.kv@3c9ba4a694ef
children 196483685a63
comparison
equal deleted inserted replaced
492:5114bbb5daa3 493:b3cedbee561d
1 #Libervia Desktop-Kivy
2 # Copyright (C) 2016-2021 Jérôme Poisson (goffi@goffi.org)
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
18 <RemoteControl>:
19 layout: layout
20 BoxLayout:
21 id: layout
22
23
24 <DevicesLayout>:
25 layout: layout
26 size_hint: 1, 1
27 ScrollView:
28 size_hint: 1, 1
29 pos_hint: {'x': 0, 'y': 0}
30 do_scroll_x: False
31 scroll_type: ['bars', 'content']
32 bar_width: dp(6)
33 StackLayout:
34 id: layout
35 size_hint: 1, None
36 height: self.minimum_height
37 spacing: 0
38
39
40 <RemoteItemWidget>:
41 shared: False
42 Symbol:
43 size_hint: 1, None
44 height: dp(80)
45 symbol: 'video'
46 color: 0, 0, 0, 1
47 Label:
48 size_hint: None, None
49 width: dp(100)
50 font_size: sp(14)
51 text_size: dp(95), None
52 size: self.texture_size
53 text: root.name
54 halign: 'center'
55
56
57 <PlayerLabel@Label>:
58 size_hint: 1, None
59 text_size: self.width, None
60 size: self.texture_size
61 halign: 'center'
62
63
64 <PlayerButton@SymbolButton>:
65 size_hint: None, 1
66
67
68 <MediaPlayerControlWidget>:
69 orientation: 'vertical'
70 PlayerLabel:
71 text: root.title
72 bold: True
73 font_size: '20sp'
74 PlayerLabel:
75 text: root.identity
76 font_size: '15sp'
77 Widget:
78 size_hint: 1, None
79 height: dp(50)
80 BoxLayout:
81 size_hint: 1, None
82 spacing: dp(20)
83 height: dp(30)
84 Widget:
85 PlayerButton:
86 symbol: "previous"
87 on_release: root.do_cmd("Previous")
88 PlayerButton:
89 symbol: "fast-bw"
90 on_release: root.do_cmd("GoBack")
91 PlayerButton:
92 symbol: root.status
93 on_release: root.do_cmd("PlayPause")
94 PlayerButton
95 symbol: "fast-fw"
96 on_release: root.do_cmd("GoFW")
97 PlayerButton
98 symbol: "next"
99 on_release: root.do_cmd("Next")
100 Widget:
101 Widget: