comparison cagou/core/widgets_handler.py @ 177:9835cafbd909

widgets handler: use dark secondary color for split
author Goffi <goffi@goffi.org>
date Tue, 01 May 2018 16:55:51 +0200
parents 27b4ceb977c7
children b6e33b35538b
comparison
equal deleted inserted replaced
176:2cfef8fbfd4e 177:9835cafbd909
27 from kivy.uix.boxlayout import BoxLayout 27 from kivy.uix.boxlayout import BoxLayout
28 from kivy.uix.stencilview import StencilView 28 from kivy.uix.stencilview import StencilView
29 from kivy.metrics import dp 29 from kivy.metrics import dp
30 from kivy import properties 30 from kivy import properties
31 from cagou import G 31 from cagou import G
32 from cagou.core.constants import Const as C
32 33
33 34
34 REMOVE_WID_LIMIT = dp(10) 35 REMOVE_WID_LIMIT = dp(10)
35 MIN_WIDTH = MIN_HEIGHT = dp(50) 36 MIN_WIDTH = MIN_HEIGHT = dp(50)
36 37
38 class WHWrapper(BoxLayout): 39 class WHWrapper(BoxLayout):
39 carousel = properties.ObjectProperty(None) 40 carousel = properties.ObjectProperty(None)
40 split_size = properties.NumericProperty(dp(1)) 41 split_size = properties.NumericProperty(dp(1))
41 split_margin = properties.NumericProperty(dp(2)) 42 split_margin = properties.NumericProperty(dp(2))
42 split_color = properties.ListProperty([0.8, 0.8, 0.8, 1]) 43 split_color = properties.ListProperty([0.8, 0.8, 0.8, 1])
43 split_color_move = properties.ListProperty([0.0, 0.8, 0.8, 1]) 44 split_color_move = C.COLOR_SEC_DARK
44 split_color_del = properties.ListProperty([0.8, 0.0, 0.0, 1]) 45 split_color_del = properties.ListProperty([0.8, 0.0, 0.0, 1])
45 # sp stands for "split point" 46 # sp stands for "split point"
46 sp_size = properties.NumericProperty(dp(1)) 47 sp_size = properties.NumericProperty(dp(1))
47 sp_space = properties.NumericProperty(dp(4)) 48 sp_space = properties.NumericProperty(dp(4))
48 sp_zone = properties.NumericProperty(dp(30)) 49 sp_zone = properties.NumericProperty(dp(30))