Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No property provided for changing the tab indicator color #1682

Open
cdavidson-project-canary opened this issue Apr 18, 2024 · 0 comments
Open
Labels
Type: Enhancement Feature request/Feature implementation

Comments

@cdavidson-project-canary
Copy link

cdavidson-project-canary commented Apr 18, 2024

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

@cdavidson-project-canary cdavidson-project-canary changed the title There is no provided method for changing the tab indicator color No property provided for changing the tab indicator color Apr 18, 2024
@HeaTTheatR HeaTTheatR added the Type: Enhancement Feature request/Feature implementation label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Feature request/Feature implementation
Projects
None yet
Development

No branches or pull requests

2 participants