mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Fix black float background
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19839 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b52c339cce
commit
def5620e58
@ -84,6 +84,8 @@ InsetCollapsable::InsetCollapsable
|
||||
setDrawFrame(true);
|
||||
setFrameColor(Color::collapsableframe);
|
||||
setButtonLabel();
|
||||
// Fallback for lacking inset layout item
|
||||
layout_.bgcolor = Color::background;
|
||||
}
|
||||
|
||||
|
||||
@ -247,7 +249,7 @@ bool InsetCollapsable::setMouseHover(bool mouse_hover)
|
||||
void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
|
||||
{
|
||||
autoOpen_ = pi.base.bv->cursor().isInside(this);
|
||||
|
||||
text_.background_color_ = backgroundColor();
|
||||
const int xx = x + TEXT_TO_INSET_OFFSET;
|
||||
|
||||
// Draw button first -- top, left or only
|
||||
|
@ -194,7 +194,6 @@ void InsetText::draw(PainterInfo & pi, int x, int y) const
|
||||
|
||||
TextMetrics & tm = pi.base.bv->textMetrics(&text_);
|
||||
|
||||
text_.background_color_ = backgroundColor();
|
||||
text_.draw(pi, x + border_, y);
|
||||
|
||||
if (drawFrame_) {
|
||||
|
Loading…
Reference in New Issue
Block a user