-
-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python self.theme_cls.backgroundColor set after on_start() #1674
Comments
@RobertFlatt Hi!, Please test #1675 |
#1675 works on Windows. Thanks. |
@facutoledo This is a known issue #1601 and is expected to be fixed soon. |
@T-Dynamos I tried loading the screens inside the Build method, after declaring the styles. This has resulted in the background color loading when starting.
|
@facutoledo Yes it is the same issue. |
Description of the Bug
In the theming example https://kivymd.readthedocs.io/en/latest/themes/theming/ , the KV version works, but the Python version does not.
It fails because in the example
self.theme_cls.backgroundColor == [1.0, 1.0, 1.0, 1.0]
when used.It appears the value is correctly set some time step after on_start, as shown by adding
This is, I assume, an issue with KivyMD, not with the example.
Screenshots
Python code example, expected (and KV) behavior is a dark background
Expected behavior shown in the example:
Versions
The text was updated successfully, but these errors were encountered: