Skip to content

Commit b48ae67

Browse files
committed
[ui] Use system color for custom dash pattern preview symbol
1 parent da01137 commit b48ae67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui/symbology/qgssymbollayerwidget.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ void QgsSimpleLineSymbolLayerWidget::updatePatternIcon()
439439
{
440440
return;
441441
}
442+
QColor color = qApp->palette().color( QPalette::WindowText );
443+
layerCopy->setColor( color );
442444
layerCopy->setUseCustomDashPattern( true );
443445
QIcon buttonIcon = QgsSymbolLayerUtils::symbolLayerPreviewIcon( layerCopy, QgsUnitTypes::RenderMillimeters, mChangePatternButton->iconSize() );
444446
mChangePatternButton->setIcon( buttonIcon );

0 commit comments

Comments
 (0)