]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathHull.cpp
Do not hardcode the background color of the preview at two places.
[features.git] / src / mathed / InsetMathHull.cpp
index 6c429c945ab5fa59b86d4acce94542cf0ad5578f..57137db2f2d1ea286e6cc2cbd5a498640e36b906 100644 (file)
@@ -39,6 +39,7 @@
 #include "insets/RenderPreview.h"
 
 #include "graphics/PreviewImage.h"
+#include "graphics/PreviewLoader.h"
 
 #include "frontends/Painter.h"
 
@@ -373,7 +374,7 @@ void InsetMathHull::metrics(MetricsInfo & mi, Dimension & dim) const
 ColorCode InsetMathHull::backgroundColor(PainterInfo const & pi) const
 {
        if (previewState(pi.base.bv))
-               return Color_background;
+               return graphics::PreviewLoader::backgroundColor();
        return Color_mathbg;
 }