First of all i'm not a professional programmer i'm just an hobbyist using code to make some stuff to work (not always). I'm using Kivy at the moment to make a simple app and can't figure out how to change the color of a button to the color i really want. I've spent some time on the page, looked stackoverflow but still can't manage it... Here's a bit of code. I use background_color to change the color and i understood i should use background_normal to set the "white color" (but i don't want the rest to be white...) and i don't know where to change background_color... Same question for when it's pressed.
It's alright for Label, this works :)
Other other small question. To get my rgb i divided all the color by 255 to get a value between 0 and 1, is it the correct way or they could be something more precise? Thanks !
BoxLayout:
padding: 10
spacing: 10
orientation: 'vertical'
Label:
text: "Jouer avec les verbes \nirréguliers par :"
color: 1,1,1,1
canvas.before:
Color:
rgba: 0.99, 0.65, 0.07, 1
Rectangle:
pos: self.pos
size: self.size
BoxLayout:
orientation: 'horizontal'
spacing: 10
Button:
text: "L'infinitif"
size_hint: 1, 1
background_color: 0.81, 0.27, 0.33, 1
Button:
text: "La traduction \nFrançaise"
size_hint: 1, 1