Sideband_CE/sbapp/kivymd/uix/snackbar/snackbar.kv

35 lines
800 B
Plaintext
Raw Normal View History

2022-07-07 22:16:10 +02:00
#:import window kivy.core.window
<BaseSnackbar>
size_hint_y: None
height: "58dp"
spacing: "10dp"
padding: "10dp", "10dp", "10dp", "10dp"
md_bg_color: "323232" if not root.bg_color else root.bg_color
radius: root.radius
2022-10-02 17:16:59 +02:00
elevation: 4 if root.padding else 0
2022-07-07 22:16:10 +02:00
canvas:
Color:
rgba: self.md_bg_color
RoundedRectangle:
size: self.size
pos: self.pos
radius: self.radius
<Snackbar>
MDLabel:
id: text_bar
size_hint_y: None
height: self.texture_size[1]
text: root.text
font_size: root.font_size
theme_text_color: "Custom"
text_color: "ffffff"
shorten: True
shorten_from: "right"
markup: True
pos_hint: {"center_y": .5}