KivyMD icon indicating copy to clipboard operation
KivyMD copied to clipboard

No property provided for changing the tab indicator color

Open cdavidson-project-canary opened this issue 4 months ago • 0 comments

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