Closed Furio0124 closed 7 months ago
Not reproducible on latest commit. Test code:
from kivymd.app import MDApp
from kivy.lang import Builder
KV = """
MDScreen:
md_bg_color:app.theme_cls.surfaceColor
MDButton:
pos_hint: {"center_x": .5, "center_y": .5}
theme_bg_color: "Custom"
md_bg_color: app.theme_cls.primaryColor
on_release: app.theme_cls.switch_theme()
"""
class uiApp(MDApp):
def build(self):
self.theme_cls.dynamic_color = True
self.theme_cls.path_to_wallpaper = '/some_image/Downloads/image.png'
return Builder.load_string(KV)
uiApp().run()
@HeaTTheatR With same image:
https://github.com/kivymd/KivyMD/assets/68729523/312ed574-d1d0-47ef-abc6-990c2c31f156
Fix in master branch
I set the palette using an image, but when changing the theme, the palette is set by default or from the primary_pallete attribute.