When I do in the Python QGIS console
QgsColorSchemeRegistry.instance().schemes(), it returns the following
[<qgis._core.QgsColorScheme object at 0x7f6cc5d8ccc8>, <qgis._core.QgsColorScheme object at 0x7f6cc5d8c938>, <qgis._core.QgsColorScheme object at 0x7f6cc5f54c30>]
If I loop the schemes with
[scheme.schemeName() for scheme in QgsColorSchemeRegistry.instance().schemes()], I get:
[u'Recent colors', u'Standard colors', u'Project colors']
So, it seems that all schemes have been through a cast so the only way to make the difference is via their
schemeName but it's not generic when you use other languages.
In my understanding, I would expect a list with returned content like below:
[<qgis._core.QgsRecentColorScheme object at 0x7f6cc5d8ccc8>, <qgis._core.QgsGplColorScheme object at 0x7f6cc5d8c938>, <qgis._core.QgsProjectColorScheme object at 0x7f6cc5f54c30>]
First, my guess is right?
Secondly, what is the "best" way to manage this case properly, if any?