-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
29 lines (24 loc) · 1003 Bytes
/
config.py
File metadata and controls
29 lines (24 loc) · 1003 Bytes
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
from pathlib import Path
from typing import Tuple, List
from EntityLibPy import DataKind
class ColorConfig:
background: Tuple[int, int, int] = (51, 51, 51) # grey
default: Tuple[int, int, int] = (255, 255, 255) # white
is_set: Tuple[int, int, int] = (255, 255, 0) # yellow
parent: Tuple[int, int, int] = (0, 255, 255) # blue
local: Tuple[int, int, int] = (0, 255, 75) # green
deleted_element: Tuple[int, int, int] = (255, 160, 0) # another yellow
invalid: Tuple[int, int, int] = (255, 80, 120) # some kind of red
light_grey: Tuple[int, int, int] = (204, 204, 204)
class Config:
src_path: Path = Path(Path(__file__).parent.resolve(), "_sources")
container_types: List[DataKind] = [
DataKind.array,
DataKind.unionSet,
DataKind.objectSet,
DataKind.primitiveSet,
DataKind.object,
]
default_dir_key: str = "default_dir"
file_types = []
color: ColorConfig = ColorConfig()