Mercurial > libervia-desktop-kivy
annotate src/libs/garden/garden.contextmenu/app_menu.kv @ 86:c711be670ecd
core, chat: upload plugin system:
- extented plugin system so it's not only used with main widget. It is also used for upload widgets and can be extended more
- plugin file name is used to detect the type: plugin_wid_* for main widgets, plugin_upload_* for upload widget plugins
- a new UploadMenu class allows to easily add an upload button which will use loaded plugins
- plugin_info can now specify a list of allowed platforms in "platforms" key
- file upload in chat has been moved to a plugin
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 25 Dec 2016 16:41:21 +0100 |
parents | 2caee196d19a |
children |
rev | line source |
---|---|
83 | 1 <AppMenu>: |
84 | 2 height: dp(30) |
83 | 3 size_hint: 1, None |
4 | |
5 canvas.before: | |
6 Color: | |
7 rgb: 0.2, 0.2, 0.2 | |
8 Rectangle: | |
9 pos: self.pos | |
10 size: self.size | |
11 | |
12 | |
13 <AppMenuTextItem>: | |
14 disabled: True | |
15 size_hint: None, None | |
16 on_children: self._check_submenu() | |
84 | 17 font_size: '15sp' |
83 | 18 background_normal: "" |
19 background_down: "" | |
20 background_color: (0.2, 0.71, 0.9, 1.0) if self.state == 'down' else (0.2, 0.2, 0.2, 1.0) | |
21 background_disabled_normal: "" | |
22 background_disabled_down: "" | |
23 border: (0, 0, 0, 0) | |
84 | 24 size: self.texture_size[0], dp(30) |
25 padding_x: dp(10) |