Skip to content

Commit 9610e86

Browse files
committed
#3399 export: set colormode to color
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 17bc9ed commit 9610e86

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# QOwnNotes Changelog
22

3+
## 25.12.0
4+
5+
- Fixed PDF export from markdown preview now renders in color instead of grayscale
6+
- The printer color mode is now explicitly set to color when exporting notes as PDF
7+
38
## 25.11.5
49

510
- There now is a checkbox in the _General settings_ to enable the checksum checking

src/mainwindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5527,6 +5527,7 @@ void MainWindow::exportNoteAsPDF(QPlainTextEdit *textEdit) {
55275527
*/
55285528
void MainWindow::exportNoteAsPDF(QTextDocument *doc) {
55295529
auto *printer = new QPrinter(QPrinter::HighResolution);
5530+
printer->setColorMode(QPrinter::Color);
55305531

55315532
if (prepareExportNoteAsPDFPrinter(printer)) {
55325533
doc->print(printer);

0 commit comments

Comments
 (0)