Mercurial > libervia-desktop-kivy
diff cagou/kv/menu.kv @ 222:a676cb07c1cb
core (menu): TouchMenuBehaviour:
moved code showing ModernMenu on item from file sharing plugin to a generic behaviour, so it can be re-used elsewhere.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 26 Jun 2018 20:26:21 +0200 |
parents | e42e0c45d384 |
children | 1f88e7781fd0 |
line wrap: on
line diff
--- a/cagou/kv/menu.kv Tue Jun 26 07:36:11 2018 +0200 +++ b/cagou/kv/menu.kv Tue Jun 26 20:26:21 2018 +0200 @@ -131,3 +131,17 @@ size_hint: 1, None height: self.minimum_height spacing: dp(5) + + +<TouchMenu>: + creation_direction: -1 + radius: dp(25) + creation_timeout: .4 + cancel_color: app.c_sec_light[:3] + [0.3] + color: app.c_sec + line_width: dp(2) + +<ModernMenuLabel>: + bg_color: app.c_sec[:3] + [0.9] + padding: dp(5), dp(5) + radius: dp(100)