def set_style(self): themes.set_bg(self, self.style) themes.set_bg(self.listview, self.style) themes.set_bg(self.navview, self.style) self.listview.reload() if self.current_list: themes.set_bg(self.current_list, self.style) self.current_list.reload()
def tableview_cell_for_row(self, tableview, section, row): logger.debug("Reload Cell at %i %i" % (section, row)) cell = ui.ListDataSource.tableview_cell_for_row( tableview.data_source, tableview, section, row ) if self.style: if cell.content_view: themes.set_bg(cell.content_view, self.style) if cell.text_label: themes.set_bg(cell.text_label, self.style) if cell.detail_text_label: themes.set_bg(cell.detail_text_label, self.style) cell.detail_text_label.text = "test" if cell.image_view: themes.set_bg(cell.image_view, self.style) else: cell.content_view.background_color = self.listview.background_color return cell