Skip to content

Commit 527b069

Browse files
committed
SVG: mix-blend-mode v3
- Enable as default - Ignore 'normal'
1 parent c3feef0 commit 527b069

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/core/Boxes/boundingbox.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,9 +1584,10 @@ eTask* BoundingBox::saveSVGWithTransform(SvgExporter& exp,
15841584
if (ptr) {
15851585
ele.setAttribute("id", AppSupport::filterId(ptr->prp_getName()));
15861586

1587-
if (expPtr->fBlendMix) {
1587+
const QString blend = skBlendModeToSVG(ptr->getBlendMode());
1588+
if (expPtr->fBlendMix && blend != "normal") {
15881589
ele.setAttribute("style",
1589-
QString("mix-blend-mode: %1;").arg(skBlendModeToSVG(ptr->getBlendMode())));
1590+
QString("mix-blend-mode: %1;").arg(blend));
15901591
}
15911592

15921593
SvgExportHelpers::assignVisibility(*expPtr, ele, visRange);

src/ui/dialogs/exportsvgdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ExportSvgDialog::ExportSvgDialog(QWidget* const parent,
111111
mBlendMix = new QCheckBox(tr("Mix Blend Modes"), this);
112112
mBlendMix->setChecked(AppSupport::getSettings("exportSVG",
113113
"blendMix",
114-
false).toBool());
114+
true).toBool());
115115

116116
connect(mBackground, &QCheckBox::stateChanged,
117117
this, [this] {

0 commit comments

Comments
 (0)