PDF export doesn’t work with dark mode of theme on linux

Exporting a pdf with dark mode enabled on Linux desktop (Mint-Y-Dark-Blue [GTK2/3]) creates a pdf with white font color on white background → unreadable.
Switching to the bright mode of the theme creates a nornal pdf (black font color on white background).

Steps to reproduce

  • Choose “dark mode“ desktop theme (here: Mint-Y-Dark-Blue [GTK2/3])
  • Export md to pdf

Expected result

A pdf with black font color on white background.

Actual result

A pdf with white font color on white background.


Obsidian version: v1.2.7
Installer version: v1.2.7
Operating system: #78-Ubuntu SMP Tue Apr 18 09:00:29 UTC 2023 5.15.0-71-generic
Login status: not logged in
Insider build toggle: off
Live preview: off
Legacy editor: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 32
Plugins enabled: 32
1: Highlightr v1.2.2
2: Calendar v1.5.10
3: Emoji Shortcodes v2.1.2
4: Emoji Toolbar v0.3.2
5: Obsidian Tabs v1.0.7
6: Recent Files v1.3.3
7: Style Settings v0.4.12
8: Outliner v4.0.1
9: Taskbone OCR v1.0.0
10: ReadItLater v0.0.16
11: Mind Map v1.1.0
12: Minimal Theme Settings v6.0.5
13: Excel to Markdown Table v0.4.0
14: Garble Text v1.2.0
15: Link Archive v0.2.0
16: Note Linker v1.1.1
17: Obsidian Math+ v0.4.2
18: Quick Latex for Obsidian v2.4.0
19: Pandoc Plugin v0.4.1
20: JSONifier v1.0.1
21: Metatable v0.14.2
22: Table to CSV Exporter v0.1.4
23: CSV Table v1.2.0
24: Advanced Tables v0.17.3
25: Trim Whitespace v0.2.2
26: JSON/CSV Importer v0.24.0
27: Dictionary v2.21.1
28: Icon Folder v1.3.4
29: Vimrc Support v0.7.3
30: Markdown Formatting Assistant v0.4.0
31: MetaEdit v1.7.2
32: Table of Contents v0.1.3

Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Additional information

I don’t think your OS theme should influnce the print view or Obsidian’s inner ui.

nevertheless, follow the debug guide and post a screen recording of this happening in the sandbox vault.

9 posts were merged into an existing topic: Base Color Scheme: “Adapt to system” is broken on Fedora 38 GNOME