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
Neither the MDTabsPrimary or MDTabsSecondary classes provides a property for changing the selected tab indicator color. The color of the indicator seems to be hardcoded to root.theme_cls.primaryColor in the kivymd/uix/tab/tab.kv file.
My workaround is to insert a new color instruction immediately following the existing color instruction defined in the tab.kv file:
color = Color(1, 1, 1, 1)
self.tab_bar.ids.container.canvas.before.insert(index=1, c=color)
Versions
OS: Windows 11 Enterprise
Python: 3.10.11
Kivy: 2.3.0
KivyMD: 2.0.1.dev0
Description of the Bug
Neither the MDTabsPrimary or MDTabsSecondary classes provides a property for changing the selected tab indicator color. The color of the indicator seems to be hardcoded to root.theme_cls.primaryColor in the kivymd/uix/tab/tab.kv file.
My workaround is to insert a new color instruction immediately following the existing color instruction defined in the tab.kv file:
Versions
OS: Windows 11 Enterprise Python: 3.10.11 Kivy: 2.3.0 KivyMD: 2.0.1.dev0