Minor fixes

This commit is contained in:
BasioMeusPuga
2019-03-22 21:35:09 -04:00
parent 8fd6a0d432
commit af1b988d93
3 changed files with 3 additions and 4 deletions

View File

@@ -541,7 +541,7 @@ class PliantNavBarWidget(QtWidgets.QDockWidget):
self.animation = QtCore.QPropertyAnimation(self, b'windowOpacity')
self.animation.setDuration(200)
self.animation.setStartValue(0)
self.animation.setEndValue(.9)
self.animation.setEndValue(.8)
background = self.main_window.settings['dialog_background']
self.setStyleSheet(
@@ -651,7 +651,6 @@ class FixedComboBox(QtWidgets.QComboBox):
self.adjusted_size = screen_width // 6
def sizeHint(self):
# This and the one below should adjust to screen size
return self.minimumSizeHint()
def minimumSizeHint(self):

View File

@@ -63,7 +63,7 @@ else:
logger.error(error_string)
# djvu - Optional
djvu_check = importlib.util.find_spec('djvu.decode')
djvu_check = importlib.util.find_spec('djvu')
if djvu_check:
from lector.parsers.djvu import ParseDJVU
sorter['djvu'] = ParseDJVU

View File

@@ -217,7 +217,7 @@ class BookToolBar(QtWidgets.QToolBar):
image_factory.get_image('page-double'),
self._translate('BookToolBar', 'Double page mode (D)'),
self)
self.doublePageButton.setObjectName('doublePageButton')
self.doublePageButton.setObjectName('doublePageButton')
self.doublePageButton.setCheckable(True)
self.mangaModeButton = QtWidgets.QAction(