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

79 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
<MDSnackbar>
padding: 0, 0, "8dp", 0
2024-09-15 17:57:02 +00:00
theme_bg_color: "Custom"
theme_elevation_level: "Custom"
theme_elevation_level: "Custom"
style: "elevated"
shadow_radius: self.radius
elevation_level: 3
2024-09-15 12:12:16 +00:00
size_hint_y: None
height: self.minimum_height
2024-09-15 17:57:02 +00:00
orientation: "vertical"
md_bg_color:
self.theme_cls.inverseSurfaceColor \
if not self.background_color else \
self.background_color
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: label_container
padding: "16dp", "15dp", 0, "15dp"
orientation: "vertical"
2024-09-15 17:57:02 +00:00
size_hint_y: None
height: self.minimum_height
pos_hint: {"top": 1}
2024-09-15 12:12:16 +00:00
spacing: "4dp"
2024-09-15 17:57:02 +00:00
BoxLayout:
id: button_container
2024-09-15 12:12:16 +00:00
size_hint_x: None
2024-09-15 17:57:02 +00:00
width: self.minimum_width
2024-09-15 12:12:16 +00:00
2024-09-15 17:57:02 +00:00
<MDSnackbarButtonContainer>
size_hint_y: None
height: self.minimum_height
<MDSnackbarText>
adaptive_size: True
font_style: "Label"
role: "large"
markup: True
text_color:
self.theme_cls.inversePrimaryColor \
if self.theme_text_color == "Primary" else \
self.text_color
<MDSnackbarSupportingText>
adaptive_height: True
font_style: "Body"
role: "medium"
markup: True
text_color:
self.theme_cls.inverseOnSurfaceColor \
if self.theme_text_color == "Primary" else \
self.text_color
<MDSnackbarActionButton>
style: "text"
pos_hint: {"right": 1}
<MDSnackbarCloseButton>
text_color:
self.theme_cls.inverseOnSurfaceColor \
if self.theme_icon_color == "Primary" else \
self.icon_color
<MDSnackbarActionButtonText>
adaptive_size: True
font_style: "Label"
role: "large"
markup: True
color:
self.theme_cls.inversePrimaryColor \
if self.theme_text_color == "Primary" else \
self.text_color