Cleanup
This commit is contained in:
12
__main__.py
12
__main__.py
@@ -38,9 +38,10 @@
|
|||||||
✓ Keep fontsize and margins consistent - Let page increase in length
|
✓ Keep fontsize and margins consistent - Let page increase in length
|
||||||
✓ Fullscreening
|
✓ Fullscreening
|
||||||
✓ Remember open tabs
|
✓ Remember open tabs
|
||||||
Special Keyboard shortcuts and view modes for QGraphicsView
|
✓ Selectable background color for QGraphicsView
|
||||||
Selectable background color for QGraphicsView
|
✓ View modes for QGraphicsView
|
||||||
View and hide toolbar actions in a list
|
✓ View and hide toolbar actions in a list
|
||||||
|
Comic view kayboard shortcuts
|
||||||
Record progress
|
Record progress
|
||||||
Pagination
|
Pagination
|
||||||
Set context menu for definitions and the like
|
Set context menu for definitions and the like
|
||||||
@@ -214,7 +215,7 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
try:
|
try:
|
||||||
layout_extra_space_per_image = space_left // num_images
|
layout_extra_space_per_image = space_left // num_images
|
||||||
self.listView.setGridSize(
|
self.listView.setGridSize(
|
||||||
QtCore.QSize(default_size + layout_extra_space_per_image, 240))
|
QtCore.QSize(default_size + layout_extra_space_per_image, 250))
|
||||||
except ZeroDivisionError: # Initial resize is ignored
|
except ZeroDivisionError: # Initial resize is ignored
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -414,7 +415,7 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
self.bookToolBar.colorBoxBG.setStyleSheet(
|
self.bookToolBar.colorBoxBG.setStyleSheet(
|
||||||
'background-color: %s' % color_name)
|
'background-color: %s' % color_name)
|
||||||
current_profile['background'] = color_name
|
current_profile['background'] = color_name
|
||||||
|
|
||||||
elif signal_sender == 'comicBGColor':
|
elif signal_sender == 'comicBGColor':
|
||||||
self.bookToolBar.comicBGColor.setStyleSheet(
|
self.bookToolBar.comicBGColor.setStyleSheet(
|
||||||
'background-color: %s' % color_name)
|
'background-color: %s' % color_name)
|
||||||
@@ -490,7 +491,6 @@ class MainUI(QtWidgets.QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
|
|
||||||
self.format_contentView()
|
self.format_contentView()
|
||||||
|
|
||||||
|
|
||||||
def format_contentView(self):
|
def format_contentView(self):
|
||||||
# TODO
|
# TODO
|
||||||
# Implement line spacing
|
# Implement line spacing
|
||||||
|
@@ -52,18 +52,10 @@ class ParseCBR:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def get_contents(self):
|
def get_contents(self):
|
||||||
# TODO
|
|
||||||
# CBR files containing multiple directories for multiple chapters
|
|
||||||
|
|
||||||
file_settings = {
|
file_settings = {
|
||||||
'images_only': True}
|
'images_only': True}
|
||||||
|
|
||||||
extract_path = os.path.join(self.temp_dir, self.file_md5)
|
extract_path = os.path.join(self.temp_dir, self.file_md5)
|
||||||
contents = collections.OrderedDict()
|
|
||||||
# This is a brute force approach
|
|
||||||
# Maybe try reading from the file as everything
|
|
||||||
# matures a little bit more
|
|
||||||
|
|
||||||
contents = collections.OrderedDict()
|
contents = collections.OrderedDict()
|
||||||
|
|
||||||
# I'm currently choosing not to keep multiple files in memory
|
# I'm currently choosing not to keep multiple files in memory
|
||||||
|
@@ -55,18 +55,10 @@ class ParseCBZ:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def get_contents(self):
|
def get_contents(self):
|
||||||
# TODO
|
|
||||||
# CBZ files containing multiple directories for multiple chapters
|
|
||||||
|
|
||||||
file_settings = {
|
file_settings = {
|
||||||
'images_only': True}
|
'images_only': True}
|
||||||
|
|
||||||
extract_path = os.path.join(self.temp_dir, self.file_md5)
|
extract_path = os.path.join(self.temp_dir, self.file_md5)
|
||||||
contents = collections.OrderedDict()
|
|
||||||
# This is a brute force approach
|
|
||||||
# Maybe try reading from the file as everything
|
|
||||||
# matures a little bit more
|
|
||||||
|
|
||||||
contents = collections.OrderedDict()
|
contents = collections.OrderedDict()
|
||||||
|
|
||||||
# I'm currently choosing not to keep multiple files in memory
|
# I'm currently choosing not to keep multiple files in memory
|
||||||
|
@@ -26,11 +26,11 @@ class Settings:
|
|||||||
'line_spacing': 1.5}
|
'line_spacing': 1.5}
|
||||||
|
|
||||||
default_profile3 = {
|
default_profile3 = {
|
||||||
'font': 'Roboto',
|
'font': 'Clear Sans',
|
||||||
'foreground': '#657b83',
|
'foreground': '#657b83',
|
||||||
'background': '#002b36',
|
'background': '#002b36',
|
||||||
'padding': 140,
|
'padding': 140,
|
||||||
'font_size': 20,
|
'font_size': 30,
|
||||||
'line_spacing': 1.5}
|
'line_spacing': 1.5}
|
||||||
|
|
||||||
self.default_profiles = [
|
self.default_profiles = [
|
||||||
|
@@ -27,8 +27,8 @@ class BookToolBar(QtWidgets.QToolBar):
|
|||||||
|
|
||||||
# Buttons
|
# Buttons
|
||||||
self.fontButton = QtWidgets.QAction(
|
self.fontButton = QtWidgets.QAction(
|
||||||
QtGui.QIcon.fromTheme('gtk-select-font'),
|
QtGui.QIcon.fromTheme('visibility'),
|
||||||
'Font settings', self)
|
'View settings', self)
|
||||||
self.fullscreenButton = QtWidgets.QAction(
|
self.fullscreenButton = QtWidgets.QAction(
|
||||||
QtGui.QIcon.fromTheme('view-fullscreen'),
|
QtGui.QIcon.fromTheme('view-fullscreen'),
|
||||||
'Fullscreen', self)
|
'Fullscreen', self)
|
||||||
|
Reference in New Issue
Block a user