LyXTikZ previews affected by LyX UI style?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
symptom-heap-chuck
Posts: 3
Joined: Fri Nov 28, 2025 8:21 am

TikZ previews affected by LyX UI style?

Post by symptom-heap-chuck »

It appears that TikZ previews are affected by the LyX user interface style?!

When I have a regular white background and black text UI (preferences | look and feel | default UI style), I can enter LyX code wrapped by preview and have the preview show up as intended. HOWEVER, if I switch to a dark mode style (in my case, Adwaita-Dark), the TikZ previews change color and are so light they barely show up on my monitor.

I attached my LyX file for reference:
preview-not-working.lyx
(3.07 KiB) Downloaded 35114 times
Here is what preview mode looks like when I have dark mode on:
Screenshot From 2025-12-10 18-59-01.png
Screenshot From 2025-12-10 18-59-01.png (38.14 KiB) Viewed 1139 times
And this is what it looks like when the style is not dark mode:
Screenshot From 2025-12-10 18-59-37.png
Screenshot From 2025-12-10 18-59-37.png (50.13 KiB) Viewed 1139 times
Ideally this shows me the diagram properly when I'm in dark mode. I don't care if it is white-on-black or black-on-white. How to make this work?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply