-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctrl_widgets.kv
More file actions
58 lines (49 loc) · 1.31 KB
/
ctrl_widgets.kv
File metadata and controls
58 lines (49 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#:import RadialSlider kivy_garden.radialslider
<CtrlSlider@MDSlider>:
size_hint: (1, None)
height: dp(50)
pos_hint: {'center_x': 0.5}
hint: False
show_off: False
min: 0
max: 255
step: 1
disabled: True
value: 127
canvas:
Color:
rgba: 0, 0, 0, 0.2
Line:
rounded_rectangle: self.x, self.y, self.width, self.height, dp(10), dp(10)
<CtrlSeparator@MDBoxLayout>:
size_hint: (0.95, None)
height: dp(2)
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: (dp(0), dp(0), dp(0), dp(0))
canvas:
Color:
rgba: (0.5, 0.5, 0.5, 0.5)
Rectangle:
pos: self.x, self.y
size: self.width, self.height
<CtrlRadialSlider@RadialSlider>:
size_hint: (None, None)
size: (dp(80), dp(80))
thumb_diameter: dp(12)
track_thickness: dp(3)
canvas:
# blue line
Color:
rgba: rgba("#3086BD")
Line:
width: self.track_thickness - 0.5
circle: self.center_x, self.center_y, self.width/2 - self.thumb_diameter, 0, self.angle
cap_precision: 10
<CtrlLabel@MDLabel>:
size_hint: (1, None)
pos_hint: {'center_x': 0.5}
height: dp(15)
font_size: sp(8)
font_style: 'Overline'
halign: 'center'
valign: 'bottom'