Beispiel #1
0
 def on_md_bg_color(interval: Union[int, float]):
     if self.type == "bottom":
         self.md_bg_color = [0, 0, 0, 0]
     else:
         if self.set_bars_color:
             set_bars_colors(color_value, None,
                             self.theme_cls.theme_style)
Beispiel #2
0
    def on_md_bg_bottom_color(self, instance_toolbar,
                              color_value: list) -> None:
        """
        Called when the value of the  :attr:`md_bg_bottom_color` attribute
        changes.
        """

        set_bars_colors(None, color_value, self.theme_cls.theme_style)
Beispiel #3
0
 def on_md_bg_bottom_color(self, instance_toolbar,
                           color_value: list) -> NoReturn:
     set_bars_colors(None, color_value, self.theme_cls.theme_style)
Beispiel #4
0
 def set_status_bar_color(self, interval: Union[int, float]) -> None:
     if self.set_bars_color:
         set_bars_colors(self.panel_color, None, self.theme_cls.theme_style)
Beispiel #5
0
 def on_md_bg_color(self, instance_toolbar, color_value: list) -> NoReturn:
     if self.type == "bottom":
         self.md_bg_color = [0, 0, 0, 0]
     else:
         set_bars_colors(color_value, None, self.theme_cls.theme_style)