def disabled_bg_color(self, style=None): if style == None: style = self.theme_style if self.theme_style == 'Light': return get_rgba_color(['Dark', 'Black'], control_alpha=0.12) if self.theme_style == 'Dark': return get_rgba_color(['Light', 'White'], control_alpha=0.12)
def hint_text_color(self, style=None): if style == None: style = self.theme_style if self.theme_style == 'Light': return get_rgba_color(['Dark', 'Black'], control_alpha=0.26) if self.theme_style == 'Dark': return get_rgba_color(['Light', 'White'], control_alpha=0.30) return get_rgba_color(['Dark', 'Black'], control_alpha=0.54)
def primary_text_color(self, style=None): if style == None: style = self.theme_style if style == 'Light': return get_rgba_color(['Dark', 'Black'], control_alpha=0.87) if style == 'Dark': return get_rgba_color(['Light', 'White'], control_alpha=1.0) return get_rgba_color(['Dark', 'Black'], control_alpha=0.87)
def _set_rip_color(self, color, alpha=None): if len(color) == 2: self._rip_color = get_rgba_color(color, control_alpha=alpha) elif len(color) == 4: self._rip_color = color
def _set_background_color(self, color, alpha=None): if len(color) == 2: self._bg_color = get_rgba_color(color, control_alpha=alpha) elif len(color) == 4: self._bg_color = color
def _get_error_color(self): return get_rgba_color([self._error_color, self._error_weight])
def _get_accent_light(self): return get_rgba_color([self.accent_palette, self.accent_light_hue])
def _get_accent_dark(self): return get_rgba_color([self.accent_palette, self.accent_dark_hue])
def _get_ripple_color(self): if self._ripple_color == None or self._ripple_weight == None: return get_rgba_color([self.accent_palette, self.accent_hue]) else: return get_rgba_color([self._ripple_color, self._ripple_weight])
def _get_primary_light(self): return get_rgba_color([self.primary_palette, self.primary_light_hue])
def _get_primary_dark(self): return get_rgba_color([self.primary_palette, self.primary_dark_hue])
def _get_dialog_background_color(self): return get_rgba_color([self.theme_style, 'DialogBackground'])
def _get_main_background_color(self): return get_rgba_color([self.theme_style, 'MainBackground'])