Mercurial > libervia-desktop-kivy
annotate libervia/desktop_kivy/kv/widgets_handler.kv @ 500:b0f70be331c5
tests: unit test for "Calls" plugins:
rel 424
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 04 Oct 2023 22:54:42 +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) |
13 | 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 | |
154 | 17 <WHWrapper>: |
18 _sp_top_y: self.y + self.height - self.sp_size | |
19 padding: self.split_size + self.split_margin, self.split_size + self.split_margin, 0, 0 | |
20 | |
21 canvas.before: | |
22 # 2 lines to indicate the split zones | |
23 Color: | |
24 rgba: self.split_color if self._split != 'left' else self.split_color_del if self._split_del else self.split_color_move | |
25 Rectangle: | |
26 pos: self.pos | |
27 size: self.split_size, self.height | |
28 Color: | |
29 rgba: self.split_color if self._split != 'top' else self.split_color_del if self._split_del else self.split_color_move | |
30 Rectangle: | |
31 pos: self.x, self.y + self.height - self.split_size | |
32 size: self.width, self.split_size | |
33 # 3 dots to indicate the main split points | |
34 Color: | |
35 rgba: 0, 0, 0, 1 | |
36 Point: | |
37 # left | |
38 points: self.x + self.sp_size, self.y + self.height / 2 - self.sp_size - self.sp_space, self.x + self.sp_size, self.y + self.height / 2, self.x + self.sp_size, self.y + self.height / 2 + self.sp_size + self.sp_space | |
39 pointsize: self.sp_size | |
40 Point: | |
41 # top | |
42 points: self.x + self.width / 2 - self.sp_size - self.sp_space, root._sp_top_y, self.x + self.width / 2, root._sp_top_y, self.x + self.width / 2 + self.sp_size + self.sp_space, root._sp_top_y | |
43 pointsize: self.sp_size |