Drop dictionary alignment by colon

This commit is contained in:
Veronica Berglyd Olsen
2021-06-25 23:14:13 +02:00
parent 486af84107
commit e1dcfaa1e3
20 changed files with 393 additions and 396 deletions
+58 -58
View File
@@ -529,71 +529,71 @@ class GuiIcons:
ICON_MAP = {
# Project and GUI icons
"novelwriter" : (None, None),
"cls_none" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_novel" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_plot" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_character" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_world" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_timeline" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_object" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_entity" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_custom" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_archive" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_trash" : (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"proj_document" : (QStyle.SP_FileIcon, "x-office-document"),
"proj_folder" : (QStyle.SP_DirIcon, "folder"),
"proj_nwx" : (None, None),
"status_lang" : (None, None),
"status_time" : (None, None),
"status_idle" : (None, None),
"status_stats" : (None, None),
"status_lines" : (None, None),
"doc_h0" : (QStyle.SP_FileIcon, "x-office-document"),
"doc_h1" : (QStyle.SP_FileIcon, "x-office-document"),
"doc_h2" : (QStyle.SP_FileIcon, "x-office-document"),
"doc_h3" : (QStyle.SP_FileIcon, "x-office-document"),
"doc_h4" : (QStyle.SP_FileIcon, "x-office-document"),
"search_case" : (None, None),
"search_regex" : (None, None),
"search_word" : (None, None),
"search_loop" : (None, None),
"search_project" : (None, None),
"search_cancel" : (None, None),
"search_preserve" : (None, None),
"novelwriter": (None, None),
"cls_none": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_novel": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_plot": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_character": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_world": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_timeline": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_object": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_entity": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_custom": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_archive": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"cls_trash": (QStyle.SP_DriveHDIcon, "drive-harddisk"),
"proj_document": (QStyle.SP_FileIcon, "x-office-document"),
"proj_folder": (QStyle.SP_DirIcon, "folder"),
"proj_nwx": (None, None),
"status_lang": (None, None),
"status_time": (None, None),
"status_idle": (None, None),
"status_stats": (None, None),
"status_lines": (None, None),
"doc_h0": (QStyle.SP_FileIcon, "x-office-document"),
"doc_h1": (QStyle.SP_FileIcon, "x-office-document"),
"doc_h2": (QStyle.SP_FileIcon, "x-office-document"),
"doc_h3": (QStyle.SP_FileIcon, "x-office-document"),
"doc_h4": (QStyle.SP_FileIcon, "x-office-document"),
"search_case": (None, None),
"search_regex": (None, None),
"search_word": (None, None),
"search_loop": (None, None),
"search_project": (None, None),
"search_cancel": (None, None),
"search_preserve": (None, None),
# General Button Icons
"folder-open" : (QStyle.SP_DirOpenIcon, "folder-open"),
"delete" : (QStyle.SP_DialogDiscardButton, "edit-delete"),
"close" : (QStyle.SP_DialogCloseButton, "window-close"),
"done" : (QStyle.SP_DialogApplyButton, None),
"clear" : (QStyle.SP_LineEditClearButton, "clear_left"),
"save" : (QStyle.SP_DialogSaveButton, "document-save"),
"add" : (None, "list-add"),
"remove" : (None, "list-remove"),
"search" : (None, "edit-find"),
"search-replace" : (None, "edit-find-replace"),
"edit" : (None, None),
"check" : (None, None),
"cross" : (None, None),
"hash" : (None, None),
"maximise" : (None, None),
"minimise" : (None, None),
"refresh" : (None, None),
"reference" : (None, None),
"backward" : (None, None),
"forward" : (None, None),
"settings" : (None, None),
"folder-open": (QStyle.SP_DirOpenIcon, "folder-open"),
"delete": (QStyle.SP_DialogDiscardButton, "edit-delete"),
"close": (QStyle.SP_DialogCloseButton, "window-close"),
"done": (QStyle.SP_DialogApplyButton, None),
"clear": (QStyle.SP_LineEditClearButton, "clear_left"),
"save": (QStyle.SP_DialogSaveButton, "document-save"),
"add": (None, "list-add"),
"remove": (None, "list-remove"),
"search": (None, "edit-find"),
"search-replace": (None, "edit-find-replace"),
"edit": (None, None),
"check": (None, None),
"cross": (None, None),
"hash": (None, None),
"maximise": (None, None),
"minimise": (None, None),
"refresh": (None, None),
"reference": (None, None),
"backward": (None, None),
"forward": (None, None),
"settings": (None, None),
# Switches
"sticky-on" : (None, None),
"sticky-off" : (None, None),
"bullet-on" : (None, None),
"bullet-off" : (None, None),
"sticky-on": (None, None),
"sticky-off": (None, None),
"bullet-on": (None, None),
"bullet-off": (None, None),
}
DECO_MAP = {
"wiz-back" : "wizard-back.jpg",
"wiz-back": "wizard-back.jpg",
}
def __init__(self, theParent):