kivymd / KivyMD

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
https://kivymd.readthedocs.io
MIT License
2.14k stars 655 forks source link

Bug with MDCard shadow #1697

Closed RicardoDazzling closed 1 month ago

RicardoDazzling commented 1 month ago

Description of the Bug

Hello everyone! My problem is it, I'm trying to place a elevated card in my program to create a dashboard, but the shadow is horrible, I don't know wy, but it's not turning out the way it should. I tryed to disable the ripple and it still running... The shadow is such multiples translucent rectangles piled up. I tryed to customize the shadow, but don't changes anything.

Code and Logs

from kivy.core.window import Window
from kivy.lang import Builder

from kivymd.app import MDApp

KV = '''
MDScreen:
    md_bg_color: app.theme_cls.backgroundColor
    MDBoxLayout:        
        MDScreen:
            MDCard:
                style: "elevated"
                pos_hint: {"center_x": .5, "center_y": .5}
                size_hint: .9, .9
'''

class Example(MDApp):
    def build(self):
        Window.maximize()
        return Builder.load_string(KV)

Example().run()

Screenshots

https://github.com/kivymd/KivyMD/assets/118565541/0786d473-3f36-4a05-a930-996d1b98abf9

Versions

HeaTTheatR commented 1 month ago

https://github.com/kivy/kivy/issues/8593