Skip to content

Commit

Permalink
[ui] Use system color for custom dash pattern preview symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 29, 2019
1 parent da01137 commit b48ae67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/symbology/qgssymbollayerwidget.cpp
Expand Up @@ -439,6 +439,8 @@ void QgsSimpleLineSymbolLayerWidget::updatePatternIcon()
{
return;
}
QColor color = qApp->palette().color( QPalette::WindowText );
layerCopy->setColor( color );
layerCopy->setUseCustomDashPattern( true );
QIcon buttonIcon = QgsSymbolLayerUtils::symbolLayerPreviewIcon( layerCopy, QgsUnitTypes::RenderMillimeters, mChangePatternButton->iconSize() );
mChangePatternButton->setIcon( buttonIcon );
Expand Down

0 comments on commit b48ae67

Please sign in to comment.