Fix display of colors in labels of arguments.

We need to handle this specially, just as we do the main font.
This commit is contained in:
Richard Heck 2016-07-29 23:36:48 -04:00
parent cbbae06c9b
commit 96a8156557
2 changed files with 9 additions and 0 deletions

View File

@ -257,6 +257,13 @@ FontInfo InsetArgument::getLabelfont() const
}
ColorCode InsetArgument::labelColor() const {
if (labelfont_.color() != Color_inherit)
return labelfont_.color();
return InsetCollapsable::labelColor();
}
InsetLayout::InsetDecoration InsetArgument::decoration() const
{
InsetLayout::InsetDecoration dec = getLayout().decoration();

View File

@ -77,6 +77,8 @@ public:
///
FontInfo getLabelfont() const;
///
ColorCode labelColor() const;
///
void setButtonLabel();
//@}