QNodeEditor.themes.dark.DarkTheme#

class QNodeEditor.themes.dark.DarkTheme#

Bases: Theme

Dark theme for node editor

Properties

edge_color_default

Color of edges in default state

edge_color_drag

Color of edges that are being dragged

edge_color_hover

Color of edges in hovered state

edge_color_selected

Color of edges in selected state

edge_style_default

Style of edges in default state

edge_style_drag

Style of edges that are being dragged

edge_style_hover

Style of edges in hovered state

edge_style_selected

Style of edges in selected state

edge_type

Type of edge ('direct' or 'bezier')

edge_width_default

Width of edges in default state

edge_width_drag

Width of edges that are being dragged

edge_width_hover

Width of edges in hovered state

edge_width_selected

Width of edges in selected state

editor_color_background

Color of editor background

editor_color_cut

Color of cutting line

editor_color_grid

Color of editor grid

editor_color_region_select

Color of region select in node view

editor_cut_dash_pattern

Dash pattern for cutting length (length must be even)

editor_cut_width

Width of cutting line

editor_grid_point_size

Size of editor background grid points

editor_grid_spacing

Spacing of editor background grid points

font_name

Relative path to .ttf file in ./fonts/ directory

font_size

Default font size

node_border_radius

Node body border radius

node_color_body

Color of node body

node_color_header

Color of node header (behind title)

node_color_outline_default

Color of node outline in default state

node_color_outline_hovered

Color of node outline in hovered state

node_color_outline_selected

Color of node outline in selected state

node_color_shadow

Color of node shadow

node_color_title

Color of node title text

node_entry_spacing

Vertical spacing between node entries

node_outline_width

Node outline width

node_padding

Node body padding (horizontal, vertical)

node_shadow_offset

Node shadow offset (dx, dy)

node_shadow_radius

Node shadow blur radius

socket_color_fill

Color of socket

socket_color_outline

Color of socket outline

socket_outline_width

Socket outline width

socket_radius

Socket radius

widget_border_radius

Widget border radius

widget_color_active

Color of active part of widget (such as progress bar)

widget_color_base

Color of widget in default state

widget_color_hovered

Primary color of widget in hovered state

widget_color_hovered_accent

Secondary color of widget in hovered state

widget_color_pressed

Primary color of widget in pressed state

widget_color_pressed_accent

Secondary color of widget in pressed state

widget_color_text

Color of widget text in default state

widget_color_text_disabled

Color of widget text in disabled state

widget_color_text_hover

Color of widget text in hovered state

widget_combo_box_arrow_name

Filename of SVG to use for combo box arrow in ./img/ directory

widget_height

Widget height

widget_outline_width

Widget outline width

Methods

__init__()#
edge_color_default: QColor = <PyQt5.QtGui.QColor object>#

Color of edges in default state

Type:

QColor

edge_color_drag: QColor = <PyQt5.QtGui.QColor object>#

Color of edges that are being dragged

Type:

QColor

edge_color_hover: QColor = <PyQt5.QtGui.QColor object>#

Color of edges in hovered state

Type:

QColor

edge_color_selected: QColor = <PyQt5.QtGui.QColor object>#

Color of edges in selected state

Type:

QColor

edge_style_default: PenStyle = 1#

Style of edges in default state

Type:

PenStyle

edge_style_drag: PenStyle = 2#

Style of edges that are being dragged

Type:

PenStyle

edge_style_hover: PenStyle = 1#

Style of edges in hovered state

Type:

PenStyle

edge_style_selected: PenStyle = 1#

Style of edges in selected state

Type:

PenStyle

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_background: QColor = <PyQt5.QtGui.QColor object>#

Color of editor background

Type:

QColor

editor_color_cut: QColor = <PyQt5.QtGui.QColor object>#

Color of cutting line

Type:

QColor

editor_color_grid: QColor = <PyQt5.QtGui.QColor object>#

Color of editor grid

Type:

QColor

editor_color_region_select: QColor = <PyQt5.QtGui.QColor object>#

Color of region select in node view

Type:

QColor

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_body: QColor = <PyQt5.QtGui.QColor object>#

Color of node body

Type:

QColor

node_color_header: QColor = <PyQt5.QtGui.QColor object>#

Color of node header (behind title)

Type:

QColor

node_color_outline_default: QColor = <PyQt5.QtGui.QColor object>#

Color of node outline in default state

Type:

QColor

node_color_outline_hovered: QColor = <PyQt5.QtGui.QColor object>#

Color of node outline in hovered state

Type:

QColor

node_color_outline_selected: QColor = <PyQt5.QtGui.QColor object>#

Color of node outline in selected state

Type:

QColor

node_color_shadow: QColor = <PyQt5.QtGui.QColor object>#

Color of node shadow

Type:

QColor

node_color_title: QColor = <PyQt5.QtGui.QColor object>#

Color of node title text

Type:

QColor

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_color_fill: QColor = <PyQt5.QtGui.QColor object>#

Color of socket

Type:

QColor

socket_color_outline: QColor = <PyQt5.QtGui.QColor object>#

Color of socket outline

Type:

QColor

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:

QColor

widget_color_base: QColor = <PyQt5.QtGui.QColor object>#

Color of widget in default state

Type:

QColor

widget_color_hovered: QColor = <PyQt5.QtGui.QColor object>#

Primary color of widget in hovered state

Type:

QColor

widget_color_hovered_accent: QColor = <PyQt5.QtGui.QColor object>#

Secondary color of widget in hovered state

Type:

QColor

widget_color_pressed: QColor = <PyQt5.QtGui.QColor object>#

Primary color of widget in pressed state

Type:

QColor

widget_color_pressed_accent: QColor = <PyQt5.QtGui.QColor object>#

Secondary color of widget in pressed state

Type:

QColor

widget_color_text: QColor = <PyQt5.QtGui.QColor object>#

Color of widget text in default state

Type:

QColor

widget_color_text_disabled: QColor = <PyQt5.QtGui.QColor object>#

Color of widget text in disabled state

Type:

QColor

widget_color_text_hover: QColor = <PyQt5.QtGui.QColor object>#

Color of widget text in hovered state

Type:

QColor

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