Skip to content
Permalink
Browse files

Provide a simple initial palette for new layers

TODO: make it AWESOME!
  • Loading branch information
nyalldawson committed Mar 12, 2018
1 parent 7e6796c commit 21ef2fd42b01f41b27adce338318ecbdfb6f6488
@@ -17,6 +17,7 @@ usr/share/qgis/doc/style.css
usr/share/qgis/i18n/*
usr/share/qgis/images/*
usr/share/qgis/resources/spatialite.db
usr/share/qgis/resources/palettes/*
usr/share/qgis/resources/themes/*
usr/share/qgis/resources/data/*
usr/share/qgis/resources/metadata-ISO/*
@@ -415,6 +415,7 @@ tar -C %OSGEO4W_ROOT% -cjf %ARCH%/release/qgis/%PACKAGENAME%/%PACKAGENAME%-%VERS
"apps/%PACKAGENAME%/resources/themes/" ^
"apps/%PACKAGENAME%/resources/data/" ^
"apps/%PACKAGENAME%/resources/metadata-ISO/" ^
"apps/%PACKAGENAME%/resources/palettes/" ^
"apps/%PACKAGENAME%/resources/2to3migration.txt" ^
"apps/%PACKAGENAME%/resources/qgis_global_settings.ini" ^
"apps/%PACKAGENAME%/qgiscrashhandler.exe" ^
@@ -0,0 +1,12 @@
GIMP Palette
Name: New Layer Colors
Columns: 4
#
213 207 60
249 216 123
114 155 111
91 122 162
243 166 178
141 90 153
232 113 141
106 161 195
@@ -53,7 +53,7 @@ void QgsColorSchemeRegistry::addDefaultSchemes()

void QgsColorSchemeRegistry::initStyleScheme()
{
QString stylePalette = QgsApplication::pkgDataPath() + QStringLiteral( "/resources/new_layer_colors.gpl" );
QString stylePalette = QgsApplication::pkgDataPath() + QStringLiteral( "/resources/palettes/new_layer_colors.gpl" );
if ( QFileInfo::exists( stylePalette ) )
{
QgsUserColorScheme *scheme = new QgsUserColorScheme( stylePalette );

0 comments on commit 21ef2fd

Please sign in to comment.
You can’t perform that action at this time.