> I will propse a patch soon.
Attached. OK to commit? I am surprised that I actually like a bit background for math (light yellow?), but having both mathcorners and mathbg looks strange. Anyway, the default of both of them are background and I have no intention to change the default. As you have said, many people are touching about lyx' appearance. :-) Cheers, Bo
Index: src/Color.h =================================================================== --- src/Color.h (revision 18258) +++ src/Color.h (working copy) @@ -123,8 +123,10 @@ mathbg, /// Macro math inset background color mathmacrobg, - /// Math inset frame color + /// Math inset frame color under focus mathframe, + /// Math inset frame color not under focus + mathcorners, /// Math line color mathline, Index: src/insets/Inset.cpp =================================================================== --- src/insets/Inset.cpp (revision 18258) +++ src/insets/Inset.cpp (working copy) @@ -288,7 +288,7 @@ void Inset::drawMarkers(PainterInfo & pi, int x, int y) const { Color::color pen_color = editing(pi.base.bv)? - Color::mathframe : Color::background; + Color::mathframe : Color::mathcorners; int const t = x + width() - 1; int const d = y + descent(); @@ -303,7 +303,7 @@ void Inset::drawMarkers2(PainterInfo & pi, int x, int y) const { Color::color pen_color = editing(pi.base.bv)? - Color::mathframe : Color::background; + Color::mathframe : Color::mathcorners; drawMarkers(pi, x, y); int const t = x + width() - 1; Index: src/mathed/InsetMathGrid.cpp =================================================================== --- src/mathed/InsetMathGrid.cpp (revision 18258) +++ src/mathed/InsetMathGrid.cpp (working copy) @@ -455,6 +455,7 @@ void InsetMathGrid::drawWithMargin(PainterInfo & pi, int x, int y, int lmargin, int rmargin) const { + pi.pain.fillRectangle(x + 1, y - ascent() + 1, width() - 2, ascent() + descent() - 1, Color::mathbg); for (idx_type idx = 0; idx < nargs(); ++idx) cell(idx).draw(pi, x + lmargin + cellXOffset(idx), y + cellYOffset(idx)); Index: src/Color.cpp =================================================================== --- src/Color.cpp (revision 18258) +++ src/Color.cpp (working copy) @@ -298,6 +298,7 @@ { graphicsbg, N_("graphics background"), "graphicsbg", "linen", "graphicsbg" }, { mathmacrobg, N_("Math macro background"), "mathmacrobg", "linen", "mathmacrobg" }, { mathframe, N_("math frame"), "mathframe", "Magenta", "mathframe" }, + { mathcorners, N_("math corners"), "mathcorners", "linen", "mathcorners" }, { mathline, N_("math line"), "mathline", "Blue", "mathline" }, { captionframe, N_("caption frame"), "captionframe", "DarkRed", "captionframe" }, { collapsable, N_("collapsable inset text"), "collapsable", "DarkRed", "collapsable" },