mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
New icon for Tweak Book
This commit is contained in:
parent
254b00c864
commit
5083f9f13c
7412
imgsrc/tweak.svg
Normal file
7412
imgsrc/tweak.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 249 KiB |
BIN
resources/images/tweak.png
Normal file
BIN
resources/images/tweak.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 124 KiB |
@ -22,6 +22,7 @@ class TweakBook(QDialog):
|
|||||||
|
|
||||||
def __init__(self, parent, book_id, fmts, db):
|
def __init__(self, parent, book_id, fmts, db):
|
||||||
QDialog.__init__(self, parent)
|
QDialog.__init__(self, parent)
|
||||||
|
self.setWindowIcon(QIcon(I('tweak.png')))
|
||||||
self.book_id, self.fmts, self.db_ref = book_id, fmts, weakref.ref(db)
|
self.book_id, self.fmts, self.db_ref = book_id, fmts, weakref.ref(db)
|
||||||
self._exploded = None
|
self._exploded = None
|
||||||
self._cleanup_dirs = []
|
self._cleanup_dirs = []
|
||||||
@ -54,7 +55,7 @@ class TweakBook(QDialog):
|
|||||||
self.rebuild_button.setEnabled(False)
|
self.rebuild_button.setEnabled(False)
|
||||||
self.explode_button.setEnabled(True)
|
self.explode_button.setEnabled(True)
|
||||||
|
|
||||||
def setup_ui(self): # {{{
|
def setup_ui(self): # {{{
|
||||||
self._g = g = QHBoxLayout(self)
|
self._g = g = QHBoxLayout(self)
|
||||||
self.setLayout(g)
|
self.setLayout(g)
|
||||||
self._l = l = QVBoxLayout()
|
self._l = l = QVBoxLayout()
|
||||||
@ -285,7 +286,7 @@ class TweakBook(QDialog):
|
|||||||
class TweakEpubAction(InterfaceAction):
|
class TweakEpubAction(InterfaceAction):
|
||||||
|
|
||||||
name = 'Tweak ePub'
|
name = 'Tweak ePub'
|
||||||
action_spec = (_('Tweak Book'), 'trim.png',
|
action_spec = (_('Tweak Book'), 'tweak.png',
|
||||||
_('Make small changes to ePub, HTMLZ or AZW3 format books'),
|
_('Make small changes to ePub, HTMLZ or AZW3 format books'),
|
||||||
_('T'))
|
_('T'))
|
||||||
dont_add_to = frozenset(['context-menu-device'])
|
dont_add_to = frozenset(['context-menu-device'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user