diff cagou/plugins/plugin_wid_file_sharing.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 890b48e41998
children 059c5b39032d
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_file_sharing.kv	Tue Jun 26 07:36:11 2018 +0200
+++ b/cagou/plugins/plugin_wid_file_sharing.kv	Tue Jun 26 20:26:21 2018 +0200
@@ -66,7 +66,7 @@
 
 
 <LocalPathWidget>:
-    shared: root.filepath in root.sharing_wid.shared_paths
+    shared: root.filepath in root.main_wid.shared_paths
 
 
 <DeviceWidget>:
@@ -89,17 +89,3 @@
 <CategorySeparator>:
     size_hint: 1, None
     height: sp(20)
-
-
-<Menu>:
-    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)