pySimBlocks.gui.graphics.theme

class pySimBlocks.gui.graphics.theme.Theme(scene_bg: QColor, block_bg: QColor, block_bg_selected: QColor, block_border: QColor, block_border_selected: QColor, text: QColor, text_type: QColor, text_selected: QColor, text_type_selected: QColor, wire: QColor, port_in: QColor, port_out: QColor)[source]

Bases: object

Store the GUI color palette used by the graphics layer.

scene_bg: QColor

Scene background color.

block_bg: QColor

Default block background color.

block_bg_selected: QColor

Selected block background color.

block_border: QColor

Default block border color.

block_border_selected: QColor

Selected block border color.

text: QColor

Default text color.

text_type: QColor
text_selected: QColor

Selected text color.

text_type_selected: QColor
wire: QColor

Connection wire color.

port_in: QColor

Input port color.

port_out: QColor

Output port color.

pySimBlocks.gui.graphics.theme.make_theme() Theme[source]

Build a theme derived from the current Qt application palette.

Returns:

Theme adapted to the current light or dark palette.