Skip to content
Permalink
Browse files

[ui] Use system color for custom dash pattern preview symbol

  • Loading branch information
nirvn committed Apr 29, 2019
1 parent da01137 commit b48ae678265b7c0785135f2a2657aa457b300734
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/symbology/qgssymbollayerwidget.cpp
@@ -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 );

0 comments on commit b48ae67

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