class SetupItem(BoxLayout): """ An individual setup item view that shows the state of the current step """ title = StringProperty('') complete = BooleanProperty(False) active = BooleanProperty(False) title_color = ListProperty(ColorScheme.get_secondary_text()) def __init__(self, **kwargs): super(SetupItem, self).__init__(**kwargs) def on_complete(self, instance, value): self.ids.complete.text = u'\uf00c' if value else '' def on_active(self, instance, value): self.title_color = ColorScheme.get_light_primary_text( ) if value else ColorScheme.get_secondary_text()
def on_active(self, instance, value): self.title_color = ColorScheme.get_light_primary_text( ) if value else ColorScheme.get_secondary_text()