如何在kivymd中使用kivymd ThemeManager颜色定义。我对文档(https://kivymd.readthedocs.io/en/latest/themes/color-definitions/)理解得不太清楚。我试图让我的背景颜色是colors["Gray"]["300"],但Kivymd的ThemeManager调色板只允许设定颜色,如灰色,红色,粉色等。
发布于 2020-12-18 20:33:19
你可以使用你想要的色调量可用的颜色。对于您的情况,它将如下所示:
self.theme_cls.primary_palette = "Gray"
self.theme_cls.theme_style = "Dark"#or "Light" if you want light theme
self.theme_cls.primary_hue = "300"https://stackoverflow.com/questions/65042026
复制相似问题