Previous topic

qarbon.qt.gui.baseview

Next topic

qarbon.qt.gui.groupbox

This Page

qarbon.qt.gui.color

Helper functions to colors from state

Functions

getBgQColorFromState Returns a background QColor from the given State.
getFgQColorFromState Returns a foreground QColor from the given State.
getQColorFromState Returns a tuple<background color (QColor), foreground color (QColor)> from the given State.
getStateColorMap Returns the map used for color states.
qarbon.qt.gui.color.getQColorFromState(state)[source]

Returns a tuple<background color (QColor), foreground color (QColor)> from the given State.

Parameters:state (State) – the state
Returns:a tuple of background a foreground color for the given state
Return type:tuple<QColor, QColor>
qarbon.qt.gui.color.getBgQColorFromState(state)[source]

Returns a background QColor from the given State.

Parameters:state (State) – the state
Returns:a background QColor for the given state
Return type:QColor
qarbon.qt.gui.color.getFgQColorFromState(state)[source]

Returns a foreground QColor from the given State.

Parameters:state (State) – the state
Returns:a foreground QColor for the given state
Return type:QColor