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

No property provided for changing the tab indicator color #1682

Open cdavidson-project-canary opened 2 months ago

cdavidson-project-canary commented 2 months ago

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:

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