Я использую KivyMD 2.0.1
Первоначальная попытка (я упростил код, включив только кнопку):< /p>
Код: Выделить всё
MDScreen:
MDButton:
style: "tonal"
md_bg_color: [232/255, 114/255, 83/255, 1]
MDButtonText:
text: "Next"
Код: Выделить всё
MDButton:
style: "filled"
md_bg_color: [232/255, 114/255, 83/255, 1]
pos_hint: {"center_x": 0.5, "center_y": 0.5} # Adjust position
size_hint: 0.3, 0.1 # Adjust size (optional)
canvas.before:
Color:
rgba: [232/255, 114/255, 83/255, 1] # Custom button color
RoundedRectangle:
pos: self.pos
size: self.size
radius: [10] # Rounded corners (optional)
MDButtonText:
text: "Next"
п>
Подробнее здесь: https://stackoverflow.com/questions/793 ... d-bg-color
Мобильная версия