# Texstudio: How to change color of internal pdf viewer?

I apply a dark theme to TeXstudio. Is it possible to make the internal pdf viewer dark, too? Is there at least an option to invert colors?

I do not want to use an external reader because I like the integration with the internal one. However the white background of the internal reader breaks my style.

You can invert the colors. The setting is only accessible via the menu of the windowed viewer:

1. Open Viewer (embedded)
2. Switch to windowed mode using the toolbar.
3. Menu -> Configure -> Invert Colors.
4. Switch back to embedded mode using the toolbar.

The setting is persistent across viewer and program restart, so you have to do it onle once.

• Awesome, that option is well hidden. :) Thanks for that! – Johannes Sep 14 '15 at 19:39
• Really great! I couldn't believe there could be a possibility of having such an option. – Habib Jul 27 '16 at 9:32

Strict inversion doesn't alter the contrast, so I prefer to change the page background while writing

\documentclass[letterpaper,12pt]{article}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\pagecolor{gray}
\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}
\section{BlindText}
\blindtext

\blindtext
\end{document}

• If it's just about the background, there's also Options -> Internal PDF Viewer -> Paper Color. Of course, this does not affect texts and other elements in the image. So when changing to very dark paper colors, the contrast will become low. – Tim Hoffmann Nov 1 '17 at 12:01
• Changing the paper color is exactly what I want. – Duke Feb 15 '19 at 13:26

I don't like the pure black background through the setting of Tim Hoffmann. Meanwhile I notice that we can apply the trick Tim Hoffmann proposed, "Options -> Internal PDF Viewer -> Paper Color", more flexibly. I just set paper color to light gray "#d1cfcf". Then I invert the colors to get deep gray background, which is the type I prefer.

• Thanks. Your answer made this question recently active and I was able to find it. Welcome to TeX.SE – phollox May 17 '20 at 19:18