]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
Make InsetInfo math/IPA icons visible in dark mode
[lyx.git] / src / insets / InsetInfo.cpp
index 96c3062ebff1714e4b1d6eb7232df93f8a1f2b47..819d8ff62e55ec92eb8858ecdb556642b8787a87 100644 (file)
@@ -1078,6 +1078,10 @@ void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype, bool cons
                igp.lyxscale = percent_scale;
                igp.scale = string();
                igp.width = Length(1, Length::EM);
+               if (contains(file.absoluteFilePath(), from_ascii("math"))
+                   || contains(file.absoluteFilePath(), from_ascii("ert-insert"))
+                   || suffixIs(file.onlyPath().absoluteFilePath(), from_ascii("ipa")))
+                       igp.darkModeSensitive = true;
                inset->setParams(igp);
                clear();
                Font const f(inherit_font, params_.lang);