Open HeaTTheatR opened 8 months ago
Does this also include the example code errors in dynamic_color_image.py? I get this error:
File "E:...\Kivy2406\examples\dynamic_color_image.py", line 78, in generate_cards for name_color in self.theme_cls.current_schemes_color_data: AttributeError: 'ThemeManager' object has no attribute 'current_schemes_color_data'
...
def generate_cards(self, *args):
self.root.ids.card_list.data = []
for name_color in self.theme_cls.current_schemes_color_data:
self.root.ids.card_list.data.append(
{
"bg_color": getattr(self.theme_cls, name_color),
"text": name_color,
}
)
...
It seems that current_schemes_color_data is not an attribute of ThemeManager. Is there supposed to be a way to get all of the colors in a Theme?
It looks as though the code excerpt in the documentation and dynamic_color_image.py is VERY similar and commits the same error.
RAH
Fix the examples in the documentation for the Dynamic color module https://kivymd.readthedocs.io/en/latest/components/dynamic-color/#example-of-dynamic-color-from-the-list-of-standard-color-schemes