PDF Viewer not invert PDF when in dark mode

Steps to reproduce

  1. Switch Obsidian to Dark Mode.
  2. Open any random PDF.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

I expect that the PDF will have a dark background and white letters.

Actual result

On Windows, iPhone, and iPad, the PDF is still in Light Mode. But on MacOS, PDF is displayed with dark mode.

Environment

SYSTEM INFO:
	Obsidian version: v1.7.7
	Installer version: v1.7.7
	Operating system: Windows 10 Pro for Workstations 10.0.19045
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

So I replicate this issue with Sandbox Vault on MacOs and the PDF is still white in dark mode. But somehow, my main vault’s PDFs can have their background in dark mode, even though I’ve turned off community plugins, and all of my CSS. Really weird.

Even in a dark theme, PDFs won’t be inverted unless you turn on the “Adapt to theme” option. And this option is set on a vault-by-vault basis.
So it’s not weird at all if you haven’t enabled it in the test vault.

1 Like

Well this is awkward, I didn’t even know that I turned on this option on MacOs. Thank you so much.

1 Like