X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Finsets%2FInsetInfo.cpp;h=819d8ff62e55ec92eb8858ecdb556642b8787a87;hb=148748b0c2f7d24471ee9beb54c4a6c6b3d20f31;hp=96c3062ebff1714e4b1d6eb7232df93f8a1f2b47;hpb=e6e30caca50bc476cf3976ecf3e84e694fc8fe60;p=lyx.git diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 96c3062ebf..819d8ff62e 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -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);