Skip to content

Commit de60052

Browse files
authored
Merge pull request doxygen#12086 from albert-github/feature/bug_formula_dark
Disable dark mode except for HTML output format
2 parents 2709938 + 169fb99 commit de60052

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)