Subgroup: Color
Class: QgsColorSchemeRegistry¶
-
class
qgis.core.
QgsColorSchemeRegistry
¶ Bases:
sip.wrapper
Registry of color schemes
A registry of QgsColorScheme color schemes. This class can be created directly, or accessed via a
QgsApplication.colorSchemeRegistry()
New in version 2.5: Methods
addColorScheme
Adds a color scheme to the registry. addDefaultSchemes
Adds all default color schemes to this color scheme. addUserSchemes
Creates schemes for all gpl palettes in the user’s palettes folder. populateFromInstance
Adds all color schemes from the global instance to this color scheme. removeColorScheme
Removes all matching color schemes from the registry schemes
Returns all color schemes in the registry Attributes
-
addColorScheme
(self, scheme: QgsColorScheme)¶ Adds a color scheme to the registry. Ownership of the scheme is transferred to the registry.
Parameters: scheme – color scheme to add See also
See also
-
addDefaultSchemes
(self)¶ Adds all default color schemes to this color scheme.
See also
See also
See also
-
addUserSchemes
(self)¶ Creates schemes for all gpl palettes in the user’s palettes folder.
See also
See also
See also
-
populateFromInstance
(self)¶ Adds all color schemes from the global instance to this color scheme.
See also
See also
-
removeColorScheme
(self, scheme: QgsColorScheme) → bool¶ Removes all matching color schemes from the registry
Parameters: scheme – color scheme to remove Returns: true if scheme was found and removed See also
-
schemes
(self) → object¶ Returns all color schemes in the registry
Returns: list of color schemes schemes(self, flag: QgsColorScheme.SchemeFlag) -> List[QgsColorScheme] Returns all color schemes in the registry which have a specified flag set
Parameters: flag – flag to match Returns: list of color schemes with flag set
-