You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
765 B
31 lines
765 B
2 years ago
|
<MDSegmentedControlItem>
|
||
|
adaptive_height: True
|
||
|
halign: "center"
|
||
|
pos_hint: {"center_y": .5}
|
||
|
markup: True
|
||
|
|
||
|
|
||
|
<MDSegmentedControl>
|
||
|
size_hint: None, None
|
||
|
size: segment_panel.size
|
||
|
|
||
|
SegmentSwitch:
|
||
|
id: segment_switch
|
||
|
height: segment_panel.height - dp(12)
|
||
|
pos_hint: {"center_y": .5}
|
||
|
x: root._segment_switch_x
|
||
|
md_bg_color: root.segment_color
|
||
|
elevation: 2
|
||
|
_radius: root.radius[0] - 4
|
||
|
width:
|
||
|
segment_panel.width / segment_panel.children_number \
|
||
|
- segment_panel.spacing
|
||
|
|
||
|
SegmentPanel:
|
||
|
id: segment_panel
|
||
|
radius: 12
|
||
|
spacing: "12dp"
|
||
|
padding: "12dp"
|
||
|
size_hint: None, None
|
||
|
size: "320dp", root.segment_panel_height
|