Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text is printed dark gray instead of black #6141

Open
D-ominik opened this issue Sep 11, 2024 · 4 comments
Open

Text is printed dark gray instead of black #6141

D-ominik opened this issue Sep 11, 2024 · 4 comments

Comments

@D-ominik
Copy link

Typora 1.9.5 Windows x64

When printing a document, the text is always printed in dark grey, regardless of the selected theme. When using a laser printer, this results in text that is unattractive and less legible.

I tried adding

@media print {
    body {
      background: white;
      color: black !important;
    }
}

to the theme CSS without any difference.

How can I achieve a text printed in black?

@abnerlee
Copy link
Contributor

We don't have a laser printer for testing, does color look black in exported PDF? Then print that PDF, is text dark?

@D-ominik
Copy link
Author

I just tried to save as PDF, got the message that the default theme is used and opened this PDF: The text color is R51 G51 B51 (#333333). I also tried printing to a PDF file using two different PDF printer drivers: same result, the text is #333333...

@abnerlee
Copy link
Contributor

Which Typora theme do you use? Did you overwrite the font color in

@media print {

}

@D-ominik
Copy link
Author

First of all, thanks a lot for your support!

I'm using the theme "Github Dark Dimmed", I've also tried other themes, including light ones such as "Whitey". The problem is still the same, text is always in R51 B51 G51 (Hex 333333) when printed or exported to PDF.

I have added the following CSS to the theme:

@media print {
    body {
      background: white;
      color: black !important;
    }
}

I also tried with red text color to make it obvious. When I emulate print mode in the inspector, the text then also appears in red. But as soon as I print or export as PDF, the text is R51 B51 G51 again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants