void InsetBranch::init()
{
setInsetName("Branch");
+ setButtonLabel();
}
setLabel("Branch: " + params_.branch);
font.setColor(LColor::foreground);
- string const color = params_.branchlist.getColor(params_.branch);
- if (!color.empty()) {
+ if (!params_.branch.empty())
setBackgroundColor(lcolor.getFromLyXName(params_.branch));
- } else
+ else
setBackgroundColor(LColor::background);
setLabelFont(font);
}