test-kivy-app/kivy_venv/lib/python3.11/site-packages/kivymd/uix/bottomsheet/bottomsheet.kv

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-09-15 17:57:02 +00:00
#:import Window kivy.core.window.Window
2024-09-15 12:12:16 +00:00
<MDBottomSheetDragHandle>
orientation: "vertical"
size_hint_y: None
height: self.minimum_height
padding: "16dp", "8dp", "16dp", "16dp"
BottomSheetDragHandle:
2024-09-15 17:57:02 +00:00
canvas:
Color:
rgba:
app.theme_cls.disabled_hint_text_color \
if not root.drag_handle_color else \
root.drag_handle_color
SmoothRoundedRectangle:
pos: self.pos
size: self.size
radius: [dp(4), ]
2024-09-15 12:12:16 +00:00
size_hint: None, None
size: "32dp", "4dp"
pos_hint: {"center_x": .5}
BottomSheetDragHandleContainer:
id: header_container
size_hint_y: None
height: self.minimum_height
<MDBottomSheet>
orientation: "vertical"
2024-09-15 17:57:02 +00:00
radius: "16dp", "16dp", 0, 0
2024-09-15 12:12:16 +00:00
padding: 0, "8dp", 0, 0
2024-09-15 17:57:02 +00:00
-x: 0
width: Window.width if Window.width <= dp(640) else dp(640)
pos_hint: {"center_x": .5}
y: self.height * (self.open_progress - 1)
2024-09-15 12:12:16 +00:00
2024-09-15 17:57:02 +00:00
BoxLayout:
2024-09-15 12:12:16 +00:00
id: drag_handle_container
size_hint_y: None
height: self.minimum_height