Use default_cover.png instead of book.png where appropriate

This commit is contained in:
Kovid Goyal 2016-09-25 23:47:08 +05:30
parent 2401335784
commit 314b13bdd8
6 changed files with 8 additions and 8 deletions

View File

@ -231,7 +231,7 @@ class CoverView(QWidget): # {{{
QSizePolicy.Expanding if vertical else QSizePolicy.Minimum,
QSizePolicy.Expanding)
self.default_pixmap = QPixmap(I('book.png'))
self.default_pixmap = QPixmap(I('default_cover.png'))
self.pixmap = self.default_pixmap
self.pwidth = self.pheight = None
self.data = {}
@ -444,7 +444,7 @@ class BookInfo(QWebView):
('remove_format', 'trash.png'), ('save_format', 'save.png'),
('restore_format', 'edit-undo.png'), ('copy_link','edit-copy.png'),
('manage_author', 'user_profile.png'), ('compare_format', 'diff.png'),
('set_cover_format', 'book.png'),
('set_cover_format', 'default_cover.png'),
]:
ac = QAction(QIcon(I(icon)), '', self)
ac.current_fmt = None

View File

@ -466,7 +466,7 @@ class LayoutMixin(object): # {{{
self.book_details = BookDetails(False, self)
self.stack = Stack(self)
self.bd_splitter = Splitter('book_details_splitter',
_('Book Details'), I('book.png'),
_('Book Details'), I('default_cover.png'),
orientation=Qt.Vertical, parent=self, side_index=1,
shortcut='Shift+Alt+D')
self.bd_splitter.addWidget(self.stack)
@ -477,7 +477,7 @@ class LayoutMixin(object): # {{{
# }}}
else: # wide {{{
self.bd_splitter = Splitter('book_details_splitter',
_('Book Details'), I('book.png'), initial_side_size=200,
_('Book Details'), I('default_cover.png'), initial_side_size=200,
orientation=Qt.Horizontal, parent=self, side_index=1,
shortcut='Shift+Alt+D')
self.stack = Stack(self)

View File

@ -786,7 +786,7 @@ class FormatsManager(QWidget):
self.cover_from_format_button = QToolButton(self)
self.cover_from_format_button.setToolTip(
_('Set the cover for the book from the selected format'))
self.cover_from_format_button.setIcon(QIcon(I('book.png')))
self.cover_from_format_button.setIcon(QIcon(I('default_cover.png')))
self.cover_from_format_button.setIconSize(QSize(32, 32))
self.metadata_from_format_button = QToolButton(self)

View File

@ -1129,7 +1129,7 @@ class CoverFetch(QDialog): # {{{
self.cover_pixmap = None
self.setWindowTitle(_('Downloading cover...'))
self.setWindowIcon(QIcon(I('book.png')))
self.setWindowIcon(QIcon(I('default_cover.png')))
self.l = l = QVBoxLayout()
self.setLayout(l)

View File

@ -655,7 +655,7 @@ A value of zero means calculate automatically.</string>
<widget class="QWidget" name="tab_4">
<attribute name="icon">
<iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/book.png</normaloff>:/images/book.png</iconset>
<normaloff>:/images/default_cover.png</normaloff>:/images/default_cover.png</iconset>
</attribute>
<attribute name="title">
<string>Book Details</string>

View File

@ -4421,7 +4421,7 @@ class CatalogBuilder(object):
title['cover'] = cover
if not os.path.exists(cover):
shutil.copyfile(I('book.png'), cover)
shutil.copyfile(I('default_cover.png'), cover)
if os.path.isfile(default_thumb_fp):
# Check to see if default cover is newer than thumbnail