Use a dedicated icon for metadata downloading

This commit is contained in:
Kovid Goyal 2014-10-20 15:33:25 +05:30
parent 594234cc4b
commit 950a3a656c
5 changed files with 13 additions and 11 deletions

View File

@ -0,0 +1 @@
<?xml version="1.0" ?><svg height="32px" version="1.1" viewBox="0 0 32 32" width="32px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g fill="#157EFB" id="icon-129-cloud-download"><path d="M15,27.25 L11.75,24 L11,24.75 L15.5,29.25 L20,24.75 L19.25,24 L16,27.25 L16,16 L15,16 L15,27.25 L15,27.25 Z M14,22 L7.00281647,22 C4.79793835,22 3,20.209139 3,18 C3,16.1046097 4.32460991,14.5117359 6.10100919,14.1021544 L6.10100919,14.1021544 C6.03467626,13.7448817 6,13.3764904 6,13 C6,9.68629134 8.68629134,7 12,7 C14.6154416,7 16.8400262,8.67345685 17.6614243,11.0080411 C18.435776,10.3778124 19.4237666,10 20.5,10 C22.8583427,10 24.7929639,11.814166 24.9844379,14.1230721 L24.9844379,14.1230721 C26.7144917,14.5630972 28,16.1320162 28,18 C28,20.2046438 26.207878,22 23.9971835,22 L17,22 L17,23 L24.0005601,23 C26.7616745,23 29,20.7558048 29,18 C29,15.9035809 27.7132907,14.1085075 25.8828633,13.3655101 L25.8828633,13.3655101 C25.3600217,10.8722494 23.1486546,9 20.5,9 C19.6371017,9 18.8206159,9.19871575 18.0938083,9.55288165 C16.8911816,7.43144875 14.6127573,6 12,6 C8.13400656,6 5,9.13400656 5,13 C5,13.1381509 5.00400207,13.275367 5.01189661,13.4115388 L5.01189661,13.4115388 C3.23965876,14.1816085 2,15.9491311 2,18 C2,20.7614237 4.23249418,23 6.99943992,23 L14,23 L14,22 L14,22 L14,22 Z" id="cloud-download"/></g></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -159,8 +159,9 @@ class EditMetadataAction(InterfaceAction):
failed_ids.union(failed_covers))
review_apply = partial(self.apply_downloaded_metadata, True)
normal_apply = partial(self.apply_downloaded_metadata, False)
self.gui.proceed_question(normal_apply, payload,
log_file, _('Download log'), _('Download complete'), msg,
self.gui.proceed_question(
normal_apply, payload, log_file, _('Download log'),
_('Metadata download complete'), msg, icon='download-metadata.png',
det_msg=det_msg, show_copy_button=show_copy_button,
cancel_callback=partial(self.cleanup_bulk_download, tdir),
log_is_file=True, checkbox_msg=checkbox_msg,

View File

@ -53,13 +53,13 @@ class ConfirmDialog(QDialog):
def __init__(self, ids, parent):
QDialog.__init__(self, parent)
self.setWindowTitle(_('Schedule download?'))
self.setWindowIcon(QIcon(I('dialog_question.png')))
self.setWindowIcon(QIcon(I('download-metadata.png')))
l = self.l = QGridLayout()
self.setLayout(l)
i = QLabel(self)
i.setPixmap(QPixmap(I('dialog_question.png')))
i.setPixmap(QPixmap(I('download-metadata.png')))
l.addWidget(i, 0, 0)
t = QLabel(

View File

@ -1029,7 +1029,7 @@ class FullFetch(QDialog): # {{{
self.book = self.cover_pixmap = None
self.setWindowTitle(_('Downloading metadata...'))
self.setWindowIcon(QIcon(I('metadata.png')))
self.setWindowIcon(QIcon(I('download-metadata.png')))
self.stack = QStackedWidget()
self.l = l = QVBoxLayout()