-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
132 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
IMAGE_EXTENSIONS = [ "*.bmp", "*.gif", "*.jpg", "*.jpeg", "*.png", "*.pbm", "*.pgm", "*.ppm", "*.webp", "*.xbm", "*.xpm",] | ||
LANGUAGE = [ " Japanese", " Korean", " Chinese SIM", " Chinese TRA ", " English",] | ||
ORIENTATION = [ " Vertical", " Horizontal",] | ||
LANG_PATH = "./assets/languages/" | ||
STYLES_PATH = "./assets/" | ||
STYLES_DEFAULT = "./assets/styles.qss" | ||
NAV_VIEW_RATIO = [ 3, 11,] | ||
NAV_ROOT = "./assets/images/" | ||
LOGO = "./assets/images/icons/logo.ico" | ||
HOME_IMAGE = "./assets/images/home.png" | ||
RBN_HEIGHT = 2.4 | ||
TBAR_ISIZE_REL = 0.1 | ||
TBAR_ISIZE_MARGIN = 1.3 | ||
TBAR_ICONS = "./assets/images/icons/" | ||
TBAR_ICONS_LIGHT = "./assets/images/icons/" | ||
TBAR_ICON_DEFAULT = "./assets/images/icons/default_icon.png" | ||
|
||
[NAV_FUNCS] | ||
path_changed = "view_image_from_fdialog" | ||
nav_clicked = "view_image_from_explorer" | ||
|
||
[MODE_FUNCS.zoom_in] | ||
help_title = "Zoom in" | ||
help_msg = "Hint: Double click the image to reset zoom." | ||
path = "zoom_in.png" | ||
toggle = false | ||
align = "AlignRight" | ||
icon_h = 0.45 | ||
icon_w = 0.45 | ||
|
||
[MODE_FUNCS.zoom_out] | ||
help_title = "Zoom out" | ||
help_msg = "Hint: Double click the image to reset zoom." | ||
path = "zoom_out.png" | ||
toggle = false | ||
align = "AlignRight" | ||
icon_h = 0.45 | ||
icon_w = 0.45 | ||
|
||
[MODE_FUNCS.load_image_at_idx] | ||
help_title = "" | ||
help_msg = "Jump to page" | ||
path = "load_image_at_idx.png" | ||
toggle = false | ||
align = "AlignRight" | ||
icon_h = 0.45 | ||
icon_w = 1.3 | ||
|
||
[MODE_FUNCS.load_prev_image] | ||
help_title = "" | ||
help_msg = "Show previous image" | ||
path = "load_prev_image.png" | ||
toggle = false | ||
align = "AlignRight" | ||
icon_h = 0.45 | ||
icon_w = 0.6 | ||
|
||
[MODE_FUNCS.load_next_image] | ||
help_title = "" | ||
help_msg = "Show next image" | ||
path = "load_next_image.png" | ||
toggle = false | ||
align = "AlignRight" | ||
icon_h = 0.45 | ||
icon_w = 0.6 | ||
|
||
[TBAR_FUNCS.FILE.open_dir] | ||
help_title = "Open manga directory" | ||
help_msg = "Open a directory containing images." | ||
path = "open_dir.png" | ||
toggle = false | ||
align = "AlignLeft" | ||
icon_h = 1.0 | ||
icon_w = 1.0 | ||
|
||
[TBAR_FUNCS.FILE.open_manga] | ||
help_title = "Open manga file" | ||
help_msg = "Supports the following formats: cbr, cbz, pdf." | ||
path = "open_manga.png" | ||
toggle = false | ||
align = "AlignLeft" | ||
icon_h = 1.0 | ||
icon_w = 1.0 | ||
|
||
[TBAR_FUNCS.SETTINGS.load_model] | ||
help_title = "Switch detection model" | ||
help_msg = "Switch between MangaOCR and Tesseract models." | ||
path = "load_model.png" | ||
toggle = true | ||
align = "AlignLeft" | ||
icon_h = 1.0 | ||
icon_w = 1.0 | ||
|
||
[TBAR_FUNCS.SETTINGS.toggle_logging] | ||
help_title = "Enable text logging" | ||
help_msg = "Save detected text to a text file located in the current project directory." | ||
path = "toggle_logging.png" | ||
toggle = true | ||
align = "AlignLeft" | ||
icon_h = 1.0 | ||
icon_w = 1.0 | ||
|
||
[TBAR_FUNCS.SETTINGS.toggle_mouse_mode] | ||
help_title = "Change mouse behavior" | ||
help_msg = "This will disable text detection. Turn this on only if do not want to hold CTRL key to zoom and pan on an image." | ||
path = "toggle_mouse_mode.png" | ||
toggle = true | ||
align = "AlignLeft" | ||
icon_h = 1.0 | ||
icon_w = 1.0 | ||
|
||
[TBAR_FUNCS.SETTINGS.toggle_stylesheet] | ||
help_title = "Change theme" | ||
help_msg = "Switch between light and dark mode." | ||
path = "toggle_stylesheet.png" | ||
toggle = false | ||
align = "AlignLeft" | ||
icon_h = 1.0 | ||
icon_w = 1.0 |