diff --git a/resources/default_tweaks.py b/resources/default_tweaks.py index 868da1ebf5..f1b36d3cf8 100644 --- a/resources/default_tweaks.py +++ b/resources/default_tweaks.py @@ -542,4 +542,5 @@ highlight_virtual_library_book_count = True # currently-selected cell. It must be an valid color name. See # http://webdesign.about.com/od/colorcharts/l/bl_namedcolors.htm # for a list of valid color names -column_highlight_color = 'lightgrey' +column_header_highlight_color = 'lightgrey' + diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index c16f0022d4..20491f583d 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -165,7 +165,8 @@ class BooksModel(QAbstractTableModel): # {{{ self.current_highlighted_idx = None self.highlight_only = False self.current_index_column = -1 - self.column_highlight_color = QVariant(QColor(tweaks['column_highlight_color'])) + self.column_header_highlight_color = \ + QVariant(QColor(tweaks['column_header_highlight_color'])) self.read_config() def _clear_caches(self): @@ -909,7 +910,7 @@ class BooksModel(QAbstractTableModel): # {{{ if role == Qt.DisplayRole: return QVariant(self.headers[self.column_map[section]]) if role == Qt.BackgroundRole and section == self.current_index_column: - return self.column_highlight_color + return self.column_header_highlight_color return NONE if DEBUG and role == Qt.ToolTipRole and orientation == Qt.Vertical: col = self.db.field_metadata['uuid']['rec_index']