QNodeEditor.themes.dark.DarkTheme#
- class QNodeEditor.themes.dark.DarkTheme#
Bases:
ThemeDark theme for node editor
Properties
Color of edges in default state
Color of edges that are being dragged
Color of edges in hovered state
Color of edges in selected state
Style of edges in default state
Style of edges that are being dragged
Style of edges in hovered state
Style of edges in selected state
Type of edge ('direct' or 'bezier')
Width of edges in default state
Width of edges that are being dragged
Width of edges in hovered state
Width of edges in selected state
Color of editor background
Color of cutting line
Color of editor grid
Color of region select in node view
Dash pattern for cutting length (length must be even)
Width of cutting line
Size of editor background grid points
Spacing of editor background grid points
Relative path to .ttf file in ./fonts/ directory
Default font size
Node body border radius
Color of node body
Color of node header (behind title)
Color of node outline in default state
Color of node outline in hovered state
Color of node outline in selected state
Color of node shadow
Color of node title text
Vertical spacing between node entries
Node outline width
Node body padding (horizontal, vertical)
Node shadow offset (dx, dy)
Node shadow blur radius
Color of socket
Color of socket outline
Socket outline width
Socket radius
Widget border radius
Color of active part of widget (such as progress bar)
Color of widget in default state
Primary color of widget in hovered state
Secondary color of widget in hovered state
Primary color of widget in pressed state
Secondary color of widget in pressed state
Color of widget text in default state
Color of widget text in disabled state
Color of widget text in hovered state
Filename of SVG to use for combo box arrow in ./img/ directory
Widget height
Widget outline width
Methods
- __init__()#
- edge_type: str = 'bezier'#
Type of edge (‘direct’ or ‘bezier’)
- Type:
str
- edge_width_default: float = 3.0#
Width of edges in default state
- Type:
float
- edge_width_drag: float = 3.0#
Width of edges that are being dragged
- Type:
float
- edge_width_hover: float = 4.0#
Width of edges in hovered state
- Type:
float
- edge_width_selected: float = 3.0#
Width of edges in selected state
- Type:
float
- editor_color_region_select: QColor = <PyQt5.QtGui.QColor object>#
Color of region select in node view
- Type:
- editor_cut_dash_pattern: list[int] = [2, 2]#
Dash pattern for cutting length (length must be even)
- Type:
list[int]
- editor_cut_width: float = 2.0#
Width of cutting line
- Type:
float
- editor_grid_point_size: float = 2.0#
Size of editor background grid points
- Type:
float
- editor_grid_spacing: int = 30#
Spacing of editor background grid points
- Type:
int
- font_name: str = 'DejaVuSans/DejaVuSansCondensed.ttf'#
Relative path to .ttf file in ./fonts/ directory
- Type:
str
- font_size: int = 10#
Default font size
- Type:
int
- node_border_radius: float = 5.0#
Node body border radius
- Type:
float
- node_color_outline_default: QColor = <PyQt5.QtGui.QColor object>#
Color of node outline in default state
- Type:
- node_color_outline_hovered: QColor = <PyQt5.QtGui.QColor object>#
Color of node outline in hovered state
- Type:
- node_color_outline_selected: QColor = <PyQt5.QtGui.QColor object>#
Color of node outline in selected state
- Type:
- node_entry_spacing: float = 5.0#
Vertical spacing between node entries
- Type:
float
- node_outline_width: float = 1.0#
Node outline width
- Type:
float
- node_padding: tuple[int] = (15, 10)#
Node body padding (horizontal, vertical)
- Type:
tuple[int]
- node_shadow_offset: tuple[float] = (0, 3)#
Node shadow offset (dx, dy)
- Type:
tuple[float]
- node_shadow_radius: float = 15.0#
Node shadow blur radius
- Type:
float
- socket_outline_width: float = 1.0#
Socket outline width
- Type:
float
- socket_radius: int = 5#
Socket radius
- Type:
int
- widget_border_radius: float = 2.0#
Widget border radius
- Type:
float
- widget_color_active: QColor = <PyQt5.QtGui.QColor object>#
Color of active part of widget (such as progress bar)
- Type:
- widget_color_hovered: QColor = <PyQt5.QtGui.QColor object>#
Primary color of widget in hovered state
- Type:
- widget_color_hovered_accent: QColor = <PyQt5.QtGui.QColor object>#
Secondary color of widget in hovered state
- Type:
- widget_color_pressed: QColor = <PyQt5.QtGui.QColor object>#
Primary color of widget in pressed state
- Type:
- widget_color_pressed_accent: QColor = <PyQt5.QtGui.QColor object>#
Secondary color of widget in pressed state
- Type:
- widget_color_text: QColor = <PyQt5.QtGui.QColor object>#
Color of widget text in default state
- Type:
- widget_color_text_disabled: QColor = <PyQt5.QtGui.QColor object>#
Color of widget text in disabled state
- Type:
- widget_color_text_hover: QColor = <PyQt5.QtGui.QColor object>#
Color of widget text in hovered state
- Type:
- widget_combo_box_arrow_name: str = 'arrow_light.svg'#
Filename of SVG to use for combo box arrow in ./img/ directory
- Type:
str
- widget_height: int = 22#
Widget height
- Type:
int
- widget_outline_width: float = 1.0#
Widget outline width
- Type:
float