Skip to content

Commit

Permalink
Set better default drop shadow parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Apr 18, 2013
1 parent cf6eabf commit bf0e8c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/qgspallabeling.cpp
Expand Up @@ -281,13 +281,13 @@ QgsPalLayerSettings::QgsPalLayerSettings()
shadowDraw = false;
shadowUnder = ShadowLowest;
shadowOffsetAngle = 135;
shadowOffsetDist = 0.0;
shadowOffsetDist = 1.0;
shadowOffsetUnits = MM;
shadowOffsetGlobal = true;
shadowRadius = 0.0;
shadowRadius = 1.5;
shadowRadiusUnits = MM;
shadowRadiusAlphaOnly = false;
shadowTransparency = 0;
shadowTransparency = 30;
shadowScale = 100;
shadowColor = Qt::black;
shadowBlendMode = QPainter::CompositionMode_Multiply;
Expand Down Expand Up @@ -689,13 +689,13 @@ void QgsPalLayerSettings::readFromLayer( QgsVectorLayer* layer )
shadowDraw = layer->customProperty( "labeling/shadowDraw", QVariant( false ) ).toBool();
shadowUnder = ( ShadowType )layer->customProperty( "labeling/shadowUnder", QVariant( ShadowLowest ) ).toUInt();//ShadowLowest;
shadowOffsetAngle = layer->customProperty( "labeling/shadowOffsetAngle", QVariant( 135 ) ).toInt();
shadowOffsetDist = layer->customProperty( "labeling/shadowOffsetDist", QVariant( 0.0 ) ).toDouble();
shadowOffsetDist = layer->customProperty( "labeling/shadowOffsetDist", QVariant( 1.0 ) ).toDouble();
shadowOffsetUnits = ( SizeUnit )layer->customProperty( "labeling/shadowOffsetUnits", QVariant( MM ) ).toUInt();
shadowOffsetGlobal = layer->customProperty( "labeling/shadowOffsetGlobal", QVariant( true ) ).toBool();
shadowRadius = layer->customProperty( "labeling/shadowRadius", QVariant( 0.0 ) ).toDouble();
shadowRadius = layer->customProperty( "labeling/shadowRadius", QVariant( 1.5 ) ).toDouble();
shadowRadiusUnits = ( SizeUnit )layer->customProperty( "labeling/shadowRadiusUnits", QVariant( MM ) ).toUInt();
shadowRadiusAlphaOnly = layer->customProperty( "labeling/shadowRadiusAlphaOnly", QVariant( false ) ).toBool();
shadowTransparency = layer->customProperty( "labeling/shadowTransparency", QVariant( 0 ) ).toInt();
shadowTransparency = layer->customProperty( "labeling/shadowTransparency", QVariant( 30 ) ).toInt();
shadowScale = layer->customProperty( "labeling/shadowScale", QVariant( 100 ) ).toInt();
shadowColor = _readColor( layer, "labeling/shadowColor", Qt::black, false );
shadowBlendMode = QgsMapRenderer::getCompositionMode(
Expand Down

0 comments on commit bf0e8c5

Please sign in to comment.