forked from adrianpueyo/KnobScripter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
67 lines (59 loc) · 2.05 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
KS_DIR = os.path.dirname(__file__)
ICONS_DIR = os.path.join(KS_DIR, "icons")
CODE_GALLERY_DEFAULT_FILE = os.path.join(KS_DIR, "code_gallery_dict.json")
KS_ICON_PATH = os.path.join(ICONS_DIR, "knob_scripter.png")
prefs = {
"ks_directory" : "KS3",
"ks_py_scripts_directory": "Scripts",
"ks_blink_directory": "Scripts",
"ks_snippets_file": "snippets.txt",
"ks_codegallery_file": "code_gallery_dict.json",
"ks_prefs_file": "prefs.txt",
"ks_py_state_file": "py_state.txt",
"ks_knob_state_file": "knob_state.txt",
"ks_default_size": [800,500],
"ks_run_in_context": True,
"ks_show_knob_labels": True,
"ks_blink_autosave_on_compile": False,
"ks_save_knob_state": 1,
"ks_save_py_state": 2,
"code_style_python": "monokai",
"code_style_blink": "default",
"se_style": "default",
"se_font_family": "Monospace",
"se_font_size": 10,
"se_tab_spaces": 4,
"qt_btn_size": 24,
"qt_icon_size": 17,
}
script_editor_styles = {
"default": {
"stylesheet": 'background:#282828;color:#EEE;',
"selected_line_color": (62, 62, 62, 255),
"lineNumberAreaColor": (36, 36, 36),
"lineNumberColor": (110, 110, 110),
"currentLineNumberColor": (255, 170, 0), # TODO: add scrollbar color
},
"blink_default": {
"stylesheet": 'background:#505050;color:#DEDEDE;',
"selected_line_color": (110, 110, 110, 255),
"lineNumberAreaColor": (72, 72, 72),
"lineNumberColor": (34, 34, 34),
"currentLineNumberColor": (255, 255, 255),
}
}
code_gallery_files = [CODE_GALLERY_DEFAULT_FILE,] # json files. TODO Make the extension of this list available as a function right after importing KS3
# Initialized at runtime
all_knobscripters = []
ks_multipanel = ""
py_scripts_dir = None
blink_dir = None
snippets_txt_path = None
codegallery_user_txt_path = None
prefs_txt_path = None
py_state_txt_path = None
knob_state_txt_path = None
py_state_dict = {} # In case of storing in memory
knob_state_dict = {} # In case of storing in memory
script_editor_font = None