Skip to content

Commit

Permalink
2.0.0 - Material Design 3
Browse files Browse the repository at this point in the history
Fix disabled colors.
  • Loading branch information
HeaTTheatR committed Dec 1, 2023
1 parent c8bf60e commit fbf4d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kivymd/theming.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ def update_theme_colors(self, *args) -> None:
for color_key in self.schemes_name_colors:
color = color_theme[style_theme.lower()][color_key]
exec(f"self.{color_key}Color = {rgba(color)}")
self.disabledTextColor = self._get_disabled_hint_text_color()

def switch_theme(self) -> None:
"""Switches the theme from light to dark."""
Expand Down Expand Up @@ -626,6 +627,7 @@ def _set_default_color(self) -> None:
for color_key in self.schemes_name_colors:
color = default_theme[self.theme_style.lower()][color_key]
exec(f"self.{color_key}Color = {rgba(color)}")
# print(f"self.{color_key}Color = {rgba(color)}")
self.disabledTextColor = self._get_disabled_hint_text_color()

def _set_palette_color(self) -> None:
Expand Down

0 comments on commit fbf4d50

Please sign in to comment.