Class: QgsCustomColorScheme

class qgis.core.QgsCustomColorScheme

Bases: QgsColorScheme

Constructor for QgsCustomColorScheme.

QgsCustomColorScheme(QgsCustomColorScheme)

A color scheme which contains custom colors set through QGIS app options dialog.

Methods

clone

rtype

QgsCustomColorScheme

fetchColors

param context

flags

rtype

QgsColorScheme.SchemeFlags

isEditable

rtype

bool

schemeName

rtype

str

setColors

param colors

clone(self) → QgsCustomColorScheme
Return type

QgsCustomColorScheme

fetchColors(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → List[Tuple[QColor, str]]
Parameters
  • context (str = '') –

  • baseColor (Union[QColor) –

Return type

List[Tuple[QColor, str]]

flags(self) → QgsColorScheme.SchemeFlags
Return type

QgsColorScheme.SchemeFlags

isEditable(self) → bool
Return type

bool

schemeName(self) → str
Return type

str

setColors(self, colors: Iterable[Tuple[Union[QColor, Qt.GlobalColor, QGradient], str]], context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → bool
Parameters
  • colors (Iterable[Tuple[Union[QColor) –

  • context (str = '') –

  • baseColor (Union[QColor) –

Return type

bool