Skip to content

Commit

Permalink
Update svgexporter.cpp
Browse files Browse the repository at this point in the history
SVG Preview CSS fixes.

Ref: #224
  • Loading branch information
rodlie committed Aug 17, 2024
1 parent 34263fe commit c450d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/svgexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void SvgExporter::nextStep()
mStream << QString::fromUtf8("<head>") << QT_ENDL;
mStream << QString::fromUtf8("<meta charset=\"utf-8\" />") << QT_ENDL;
mStream << QString::fromUtf8("<title>%1</title>").arg(tr("Preview")) << QT_ENDL;
mStream << QString::fromUtf8("<style>html { background: repeating-conic-gradient(#b0b0b0 0% 25%, transparent 0% 50%) 50% / 40px 40px; } svg { width: 100%; height: 100vh;}</style>") << QT_ENDL;
mStream << QString::fromUtf8("<style>html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; } html { background: repeating-conic-gradient(#b0b0b0 0% 25%, transparent 0% 50%) 50% / 40px 40px; } svg { margin: auto; width: 100%; height: 100%; object-fit: contain; overflow: hidden; }</style>") << QT_ENDL;
mStream << QString::fromUtf8("</head>") << QT_ENDL;
mStream << QString::fromUtf8("<body>") << QT_ENDL;
} else {
Expand Down

0 comments on commit c450d2b

Please sign in to comment.