mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
cbbae06c9b
commit
96a8156557
@ -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();
|
||||
|
@ -77,6 +77,8 @@ public:
|
||||
///
|
||||
FontInfo getLabelfont() const;
|
||||
///
|
||||
ColorCode labelColor() const;
|
||||
///
|
||||
void setButtonLabel();
|
||||
//@}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user