Is it not possible to change the font color in Beeware/toga?

97 Views Asked by At

I am trying to create a black background button with white text but there doesn't appear to be a parameter for font color anywhere in Beeware docs:

        login_input = toga.Button('SignIn',style=Pack(padding_top=25,background_color='#000000',font_size=20), on_press=self.login_handler)

The above code would just show a black button with invisible black text. The Pack style engine doesn't seem to support any font colors. Did I miss something?

1

There are 1 best solutions below

0
On

Toga follows CSS attribute names, so the foreground color attribute is just called color.