Subgroup: other
Class: QgsRecentColorScheme¶
-
class
qgis.core.
QgsRecentColorScheme
¶ Bases:
qgis._core.QgsColorScheme
A color scheme which contains the most recently used colors.
New in version 2.5: Methods
addRecentColor
Adds a color to the list of recent colors. clone
fetchColors
flags
isEditable
Returns whether the color scheme is editable lastUsedColor
Returns the most recently used color. schemeName
setColors
Sets the colors for the scheme. Attributes
ShowInAllContexts
ShowInColorButtonMenu
ShowInColorDialog
-
addRecentColor
(color: Union[QColor, Qt.GlobalColor, QGradient])¶ Adds a color to the list of recent colors.
Parameters: color – color to add New in version 2.14.
See also
-
clone
(self) → QgsRecentColorScheme¶
-
fetchColors
(self, context: str = '', baseColor: Union[QColor, Qt.GlobalColor, QGradient] = QColor()) → object¶
-
flags
(self) → QgsColorScheme.SchemeFlags¶
-
lastUsedColor
() → QColor¶ Returns the most recently used color.
New in version 3.0.
See also
-
schemeName
(self) → str¶
-