def tableview_cell_for_row(self, tableview, section, row):
cell = ui.TableViewCell()
cell.border_color = self.theme_manager.currentTheme.borderColour
cell.background_color = self.theme_manager.currentTheme.backgroundColour
cell.bg_color = self.theme_manager.currentTheme.backgroundColour
cell.tint_color = self.theme_manager.currentTheme.tintColour
cell.text_label.text_color = self.theme_manager.currentTheme.textColour
selectedBackgroundView = ui.View()
selectedBackgroundView.background_color = self.theme_manager.currentTheme.settingsCellSelectionColour
if not self.theme_manager.currentTheme.showSettingsCellSelection:
selectedBackgroundView.alpha = 0
cell.selected_background_view = selectedBackgroundView
if section == self.docset_section_number:
cell.text_label.text = self.data[row]
cell.accessory_type = 'disclosure_indicator'
elif section == self.ack_section_number:
cell.text_label.text = self.ack_data[row]['text']
elif section == self.pydoc_updates_section_number:
cell.text_label.text = self.updates_data[row]
elif section == self.theme_section_number:
cell.text_label.text = self.theme_data[row]
elif section == self.websearch_section_number:
cell.text_label.text = self.webSearch_data[row]
return cell
评论列表
文章目录