mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
5e6f9d1753
commit
275bdcd845
@ -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 dec = getLayout().decoration();
|
||||
|
@ -77,6 +77,8 @@ public:
|
||||
///
|
||||
FontInfo getLabelfont() const;
|
||||
///
|
||||
ColorCode labelColor() const;
|
||||
///
|
||||
void setButtonLabel();
|
||||
//@}
|
||||
|
||||
|
@ -57,6 +57,8 @@ What's new
|
||||
- Fix display glitch when switching to Description layout with an inset
|
||||
at the beginning of the paragraph (bug 10163)
|
||||
|
||||
- Fix display of label font for argument insets.
|
||||
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user