mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
If system colors are used, paint selected math in Color_selectiontext
instead of Color_math. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35355 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1145a55307
commit
0dec044864
@ -433,8 +433,10 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColorCode color = pi.selected && lyxrc.use_system_colors
|
||||||
|
? Color_selectiontext : standardColor();
|
||||||
bool const really_change_color = pi.base.font.color() == Color_none;
|
bool const really_change_color = pi.base.font.color() == Color_none;
|
||||||
ColorChanger dummy0(pi.base.font, standardColor(), really_change_color);
|
ColorChanger dummy0(pi.base.font, color, really_change_color);
|
||||||
FontSetChanger dummy1(pi.base, standardFont());
|
FontSetChanger dummy1(pi.base, standardFont());
|
||||||
StyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
|
StyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user