def tableview_cell_for_row(self, tableview, section, row):
cell = ui.TableViewCell()
cell.border_color = self.theme_manager.currentTheme.tintColour
cell.background_color = self.theme_manager.currentTheme.backgroundColour
cell.bar_tint_color = self.theme_manager.currentTheme.toolbarBackgroundColour
cell.bg_color = self.theme_manager.currentTheme.backgroundColour
cell.tint_color = self.theme_manager.currentTheme.tintColour
cell.title_color = self.theme_manager.currentTheme.tintColour
cell.text_label.text_color = self.theme_manager.currentTheme.textColour
cell.text_label.text = self.data[row].plural
cell.accessory_type = 'disclosure_indicator'
selectedBackgroundView = ui.View()
selectedBackgroundView.background_color = self.theme_manager.currentTheme.cellSelectionColour
if not self.theme_manager.currentTheme.showCellSelection:
selectedBackgroundView.alpha = 0
cell.selected_background_view = selectedBackgroundView
if not self.data[row].icon == None:
cell.image_view.image = self.data[row].icon
return cell
评论列表
文章目录