Skip to content

Commit

Permalink
add style for preview svg
Browse files Browse the repository at this point in the history
adding css style preview SVG to make it fit into screen
  • Loading branch information
irwant authored and rodlie committed Aug 18, 2024
1 parent c08c42d commit 76c0022
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; }</style>") << 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("</head>") << QT_ENDL;
mStream << QString::fromUtf8("<body>") << QT_ENDL;
} else {
Expand Down

0 comments on commit 76c0022

Please sign in to comment.