-
-
Notifications
You must be signed in to change notification settings - Fork 677
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
KivyMD 2.0.0 Screen Background is Black (and more) #1740
Comments
You need that one line for things to work as expected. This sets the background color as you set it in your build method. You do the same in a KV file as well. |
Doesn't work, self.themecls.backgroundColor seems to do nothing for the background in my testing |
Apologies, Here is a working code snippet i Just tested. I hope it works for you from kivymd.app import MDApp class MainApp(MDApp): MainApp().run() |
Its fine, I switched back to KivyMD=1.2.0, I dont want to spend too much time figuring out why only my installation of kivymd 2 was broken. Thanks for your help though! |
Cool cool cool. |
Software Versions
Whenever I use specifically version 2.0.0 of kivymd, the background screen is black. This does not occur in kivymd version 1.2.0.
Code: (2.0.0)
`from kivymd.app import MDApp
from kivymd.uix.screen import MDScreen
from kivymd.uix.button import MDButton, MDButtonText
class MainApp(MDApp):
def build(self):
self.theme_cls.theme_style = "Light"
self.theme_cls.primary_palette = "Beige"
MainApp().run()`
Result: (2.0.0)
i think at one point it was working fine with more complete code. at first i thought it was my code but its clear that it doesn't work with any example code.
it also isn't dependent on if im using a .kv file or not
also its more than just the black screen, if i use a canvas to add a custom colored background:
it is always white
on top of that, textinput features like hint text and icons do not show up, and some button's icons dont appear.
might be an issue with installing the package but i have tried reinstalling, will try deleting the entire venv and retry it
The text was updated successfully, but these errors were encountered: