openCom-Companion/sbapp/kivymd/uix/menu/menu.kv

60 lines
1.3 KiB
Plaintext
Raw Normal View History

#:import STD_INC kivymd.material_resources.STANDARD_INCREMENT
2022-07-07 22:16:10 +02:00
<RightContent>
adaptive_width: True
<MDMenuItemIcon>
IconLeftWidget:
id: icon_widget
icon: root.icon
<MDMenu>
size_hint: None, None
width: root.width_mult * STD_INC
2022-07-07 22:16:10 +02:00
bar_width: 0
key_viewclass: "viewclass"
key_size: "height"
RecycleBoxLayout:
padding: 0, "4dp", 0, "4dp"
default_size: None, dp(48)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: "vertical"
<MenuContainer@MDCard+FakeRectangularElevationBehavior>
2022-07-07 22:16:10 +02:00
<MDDropdownMenu>
MenuContainer:
id: card
orientation: "vertical"
elevation: root.elevation
size_hint: None, None
size: md_menu.size[0], md_menu.size[1] + content_header.height
pos: md_menu.pos
opacity: md_menu.opacity
radius: root.radius
md_bg_color:
root.background_color \
if root.background_color else root.theme_cls.bg_dark
MDBoxLayout:
id: content_header
adaptive_size: True
MDMenu:
id: md_menu
drop_cls: root
width_mult: root.width_mult
size_hint: None, None
size: 0, 0
opacity: 0