Fix display of colors in labels of arguments.

We need to handle this specially, just as we do the main font.

(cherry picked from commit 96a8156557)
This commit is contained in:
Richard Heck 2016-07-29 23:36:48 -04:00
parent 5e6f9d1753
commit 275bdcd845
3 changed files with 11 additions and 0 deletions

View File

@ -255,6 +255,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 InsetArgument::decoration() const
{ {
InsetLayout::InsetDecoration dec = getLayout().decoration(); InsetLayout::InsetDecoration dec = getLayout().decoration();

View File

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

View File

@ -57,6 +57,8 @@ What's new
- Fix display glitch when switching to Description layout with an inset - Fix display glitch when switching to Description layout with an inset
at the beginning of the paragraph (bug 10163) at the beginning of the paragraph (bug 10163)
- Fix display of label font for argument insets.
* USER INTERFACE * USER INTERFACE