Class: QgsProjectColorScheme

class qgis.core.QgsProjectColorScheme

Bases: QgsColorScheme

Constructor for QgsProjectColorScheme.

QgsProjectColorScheme(QgsProjectColorScheme)

A color scheme which contains project specific colors set through project properties dialog.

Methods

clone

rtype

QgsProjectColorScheme

fetchColors

param context

flags

rtype

QgsColorScheme.SchemeFlags

isEditable

rtype

bool

schemeName

rtype

str

setColors

param colors

clone(self) → QgsProjectColorScheme
Return type

QgsProjectColorScheme

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