mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +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;
|
||||
}
|
||||
|
||||
ColorCode color = pi.selected && lyxrc.use_system_colors
|
||||
? Color_selectiontext : standardColor();
|
||||
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());
|
||||
StyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user