-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
41 lines (38 loc) · 1.13 KB
/
constants.py
File metadata and controls
41 lines (38 loc) · 1.13 KB
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
#COLORS
LIGHT_GRAY = (200, 200, 200)
BORDER_GRAY = (160, 160, 160)
DARK_GRAY = (64, 64, 64)
GRAY = (128, 128, 128)
BLUE = (0, 122, 204)
INPUT_CONNECTOR_COLOR = (0, 180, 255) # Cyan-like, bright and distinctive
RED = (255, 0, 0)
WHITE = (255, 255, 255)
YELLOW = (255, 255, 0)
GREEN = (0, 255, 0)
BLUEPRINT_COLOR = (30, 40, 100) # Background color of the blueprint
BLUEPRINT_LINE_COLOR = (50, 60, 120) # Color of the grid lines
#MAIN WINDOW
WINDOW_WIDTH = 1200
WINDOW_HEIGHT = 800
#TOOLBAR
TOOLBAR_LAYOUT = "vertical" # "horizontal" or "vertical"
TOOLBAR_WIDTH = WINDOW_WIDTH*0.1
TOOLBAR_HEIGHT = WINDOW_HEIGHT
NODE_WIDTH = 80
NODE_HEIGHT = 80
CONNECTION_RADIUS = 6
BLUEPRINT_GRID_SIZE = 20
TOOLBAR_BUTTON_FONT_SIZE = 24
# TOOLBAR
TOOLBAR_BUTTON_WIDTH = TOOLBAR_WIDTH - 20
TOOLBAR_BUTTON_HEIGHT = TOOLBAR_HEIGHT // 20
TOOLBAR_BUTTON_LEFT_MARGIN = 10
TOOLBAR_BUTTON_TOP_MARGIN = 10
TOOLBAR_BUTTON_TEXT_PADDING_HORIZONTAL = 20
TOOLBAR_BUTTON_TEXT_PADDING_VERTICAL = 12
TOOLBAR_BG_COLOR = (30, 40, 90) # Background color of the toolbar
# (80, 150, 80) apple green
# (30, 40, 90) silk blue
# (200, 150, 70) #Bronze tone
# GRAPH
EDGE_CLICK_TOLERANCE = 10