]> git.lyx.org Git - features.git/commitdiff
If system colors are used, paint selected math in Color_selectiontext
authorEnrico Forestieri <forenr@lyx.org>
Mon, 13 Sep 2010 01:36:00 +0000 (01:36 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 13 Sep 2010 01:36:00 +0000 (01:36 +0000)
instead of Color_math.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35355 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 1c3eb533704e6d2bbcb0a4f0a58554b236525f52..c0225c754cd4450b487c7d1121da2183388eeb7e 100644 (file)
@@ -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);