Sideband_CE/sbapp/kivymd/uix/imagelist/imagelist.kv

29 lines
921 B
Plaintext
Raw Permalink Normal View History

2022-07-07 22:16:10 +02:00
<MDSmartTile>
SmartTileImage:
id: image
mipmap: root.mipmap
source: root.source
radius: root.radius if root.radius else [0, 0, 0, 0]
size_hint_y: 1 if root.overlap else None
height: root.height if root.overlap else root.height - box.height
pos:
((0, 0) if root.overlap else (0, box.height)) \
if root.box_position == "footer" else \
(0, 0)
on_release: root.dispatch("on_release")
on_press: root.dispatch("on_press")
2023-07-10 02:49:58 +02:00
_no_ripple_effect: root._no_ripple_effect
2022-07-07 22:16:10 +02:00
SmartTileOverlayBox:
id: box
md_bg_color: root.box_color
size_hint_y: None
padding: "8dp"
radius: root.box_radius
height: "68dp" if root.lines == 2 else "48dp"
pos:
(0, 0) \
if root.box_position == "footer" else \
(0, root.height - self.height)