Skip to content

Commit 169fb99

Browse files
committed
Disable dark mode except for HTML output format
We possibly only need the dark mode formulas for the HTML output format, not for the other formats
1 parent e5fb95b commit 169fb99

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/formula.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,8 @@ void FormulaManager::generateImages(const QCString &path,bool toIndex,Format for
661661
}
662662

663663
createFormulasTexFile(thisDir,format,hd,Mode::Light,toIndex);
664-
if (Config_getEnum(HTML_COLORSTYLE)!=HTML_COLORSTYLE_t::LIGHT) // all modes other than light need a dark version
664+
// for the HTML output format (toIndex == true) we possibly need the dark mode, not for the other formats
665+
if (toIndex && Config_getEnum(HTML_COLORSTYLE)!=HTML_COLORSTYLE_t::LIGHT) // all modes other than light need a dark version
665666
{
666667
// note that the dark version reuses the bounding box of the light version so it needs to be
667668
// created after the light version.

0 commit comments

Comments
 (0)