cs << pconverter_->command << ' ' << pconverter_->to << ' '
<< quoteName(latexfile.toFilesystemEncoding()) << ' '
<< int(font_scaling_factor_) << ' '
- << theApp()->hexName(Color_preview) << ' '
- << theApp()->hexName(Color_background);
+ << theApp()->hexName(PreviewLoader::foregroundColor()) << ' '
+ << theApp()->hexName(PreviewLoader::backgroundColor());
string const command = libScriptSearch(cs.str());
#include <boost/signal.hpp>
+#include "ColorCode.h"
namespace lyx {
/// Which buffer owns this loader.
Buffer const & buffer() const;
+ /// The background color used
+ static ColorCode backgroundColor() { return Color_background; }
+ /// The foreground color used
+ static ColorCode foregroundColor() { return Color_preview; }
private:
/// noncopyable
#include "insets/RenderPreview.h"
#include "graphics/PreviewImage.h"
+#include "graphics/PreviewLoader.h"
#include "frontends/Painter.h"
ColorCode InsetMathHull::backgroundColor(PainterInfo const & pi) const
{
if (previewState(pi.base.bv))
- return Color_background;
+ return graphics::PreviewLoader::backgroundColor();
return Color_mathbg;
}