small clean up.
import os
-# === PIPE DEFAULTS ===
+# === PIPE ===
-#: Draw thickness size for connection pipes.
PIPE_WIDTH = 1.2
PIPE_STYLE_DEFAULT = 'line'
PIPE_STYLE_DASHED = 'dashed'
PIPE_STYLE_DOTTED = 'dotted'
-#: The draw color for connection pipes.
PIPE_DEFAULT_COLOR = (146, 69, 39, 255)
-#: The draw color for when a connection pipe is selected.
PIPE_ACTIVE_COLOR = (70, 255, 220, 255)
-#: The draw color for when a node is selected.
PIPE_HIGHLIGHT_COLOR = (232, 184, 13, 255)
#: The draw the connection pipes as straight lines.
PIPE_LAYOUT_STRAIGHT = 0
#: The draw the connection pipes as curved lines.
PIPE_LAYOUT_CURVED = 1
-# === PORT DEFAULTS ===
+# === PORT ===
#: Connection type for input ports.
IN_PORT = 'in'
#: Connection type for output ports.
OUT_PORT = 'out'
-# : The draw color for node ports.
PORT_ACTIVE_COLOR = (29, 80, 84, 255)
-# : The draw color for node ports when connected.
PORT_ACTIVE_BORDER_COLOR = (45, 215, 255, 255)
PORT_HOVER_COLOR = (17, 96, 20, 255)
PORT_HOVER_BORDER_COLOR = (136, 255, 35, 255)
-# === NODE DEFAULTS ===
+# === NODE ===
NODE_WIDTH = 100
NODE_HEIGHT = 80
NODE_ICON_SIZE = 24
-#: The draw overlay color for selected nodes.
NODE_SEL_COLOR = (255, 255, 255, 30)
-#: The draw border color for selected nodes.
NODE_SEL_BORDER_COLOR = (254, 207, 42, 255)
-# === NODE PROPERTY TYPES ===
+# === NODE PROPERTY ===
#: Property type will hidden in the properties bin (default).
NODE_PROP = 0
@@ -63,7 +55,7 @@ NODE_PROP_COLORPICKER = 6
#: Property type represented with a Slider widget in the properties bin.
NODE_PROP_SLIDER = 7
-# === NODE VIEWER DEFAULTS ===
+# === NODE VIEWER ===
#: Node graph background color.
VIEWER_BG_COLOR = (35, 35, 35)
@@ -72,7 +64,7 @@ VIEWER_GRID_OVERLAY = True
SCENE_AREA = 8000.0
-# === GRAPH PATHS ===
+# === PATHS ===
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
ICON_PATH = os.path.join(BASE_PATH, 'widgets', 'icons')
