Skip to content

Commit 21bb011

Browse files
committed
small clean up.
1 parent 233fae6 commit 21bb011

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

NodeGraphQt/constants.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,40 @@
33
import os
44

55

6-
# === PIPE DEFAULTS ===
6+
# === PIPE ===
77

8-
#: Draw thickness size for connection pipes.
98
PIPE_WIDTH = 1.2
109
PIPE_STYLE_DEFAULT = 'line'
1110
PIPE_STYLE_DASHED = 'dashed'
1211
PIPE_STYLE_DOTTED = 'dotted'
13-
#: The draw color for connection pipes.
1412
PIPE_DEFAULT_COLOR = (146, 69, 39, 255)
15-
#: The draw color for when a connection pipe is selected.
1613
PIPE_ACTIVE_COLOR = (70, 255, 220, 255)
17-
#: The draw color for when a node is selected.
1814
PIPE_HIGHLIGHT_COLOR = (232, 184, 13, 255)
1915
#: The draw the connection pipes as straight lines.
2016
PIPE_LAYOUT_STRAIGHT = 0
2117
#: The draw the connection pipes as curved lines.
2218
PIPE_LAYOUT_CURVED = 1
2319

24-
# === PORT DEFAULTS ===
20+
# === PORT ===
2521

2622
#: Connection type for input ports.
2723
IN_PORT = 'in'
2824
#: Connection type for output ports.
2925
OUT_PORT = 'out'
30-
# : The draw color for node ports.
3126
PORT_ACTIVE_COLOR = (29, 80, 84, 255)
32-
# : The draw color for node ports when connected.
3327
PORT_ACTIVE_BORDER_COLOR = (45, 215, 255, 255)
3428
PORT_HOVER_COLOR = (17, 96, 20, 255)
3529
PORT_HOVER_BORDER_COLOR = (136, 255, 35, 255)
3630

37-
# === NODE DEFAULTS ===
31+
# === NODE ===
3832

3933
NODE_WIDTH = 100
4034
NODE_HEIGHT = 80
4135
NODE_ICON_SIZE = 24
42-
#: The draw overlay color for selected nodes.
4336
NODE_SEL_COLOR = (255, 255, 255, 30)
44-
#: The draw border color for selected nodes.
4537
NODE_SEL_BORDER_COLOR = (254, 207, 42, 255)
4638

47-
# === NODE PROPERTY TYPES ===
39+
# === NODE PROPERTY ===
4840

4941
#: Property type will hidden in the properties bin (default).
5042
NODE_PROP = 0
@@ -63,7 +55,7 @@
6355
#: Property type represented with a Slider widget in the properties bin.
6456
NODE_PROP_SLIDER = 7
6557

66-
# === NODE VIEWER DEFAULTS ===
58+
# === NODE VIEWER ===
6759

6860
#: Node graph background color.
6961
VIEWER_BG_COLOR = (35, 35, 35)
@@ -72,7 +64,7 @@
7264

7365
SCENE_AREA = 8000.0
7466

75-
# === GRAPH PATHS ===
67+
# === PATHS ===
7668

7769
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
7870
ICON_PATH = os.path.join(BASE_PATH, 'widgets', 'icons')

0 commit comments

Comments
 (0)