if (useFColorBox()) {
os << maybeBeginL
<< "\\fcolorbox{" << getFrameColor()
- << "}{" << getBackgroundColor(buffer().params().isbackgroundcolor)
+ << "}{" << getBackgroundColor()
<< "}{" << "\\makebox";
needEndL = !maybeBeginL.empty();
} else
if (useFColorBox()) {
os << maybeBeginL
<< "\\fcolorbox{" << getFrameColor()
- << "}{" << getBackgroundColor(buffer().params().isbackgroundcolor) << "}";
+ << "}{" << getBackgroundColor() << "}";
needEndL = !maybeBeginL.empty();
} else {
if (!cprotect.empty() && contains(runparams.active_chars, '^')) {
}
-string const InsetBox::getBackgroundColor(bool const custompb) const
+string const InsetBox::getBackgroundColor() const
{
if (params_.backgroundcolor == "none")
- return custompb ? "page_backgroundcolor" : "white";
+ return buffer().params().isbackgroundcolor
+ ? "page_backgroundcolor"
+ : "white";
return params_.backgroundcolor;
}
///
std::string const getFrameColor(bool const gui = false) const;
///
- std::string const getBackgroundColor(bool const custompb = false) const;
+ std::string const getBackgroundColor() const;
///
bool useFColorBox() const;