[LyX/master] Addendum to #ed8a7b8
Koji Yokota <[email protected]> Fri, 24 Jul 2026 06:02:00 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 49be8de1b9d184d653161e172804fc9ed84348ac Author: Koji Yokota <[email protected]> Date: Fri Jul 24 15:01:56 2026 +0900 Addendum to #ed8a7b8 --- src/graphics/PreviewLoader.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 0d185b4350..5156922494 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -679,9 +679,12 @@ void PreviewLoader::Impl::startLoading(bool wait) // The colors should be customizable. if (!buffer_.isExporting()) { ColorCode const fg = PreviewLoader::foregroundColor(); + cs << " --fg " << theApp()->hexName(fg); ColorCode const bg = PreviewLoader::backgroundColor(); - cs << " --fg " << theApp()->hexName(fg) - << " --bg " << theApp()->hexName(bg); + if (bg == Color_transparent) + cs << " --bg \"transparent\""; + else + cs << " --bg " << theApp()->hexName(bg); } cs << latexparam; -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs