mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Use background to make math comments more visible
This commit is contained in:
parent
c4001c7022
commit
3040eb0fa2
@ -16,6 +16,10 @@
|
|||||||
#include "MathStream.h"
|
#include "MathStream.h"
|
||||||
#include "MathSupport.h"
|
#include "MathSupport.h"
|
||||||
|
|
||||||
|
#include "frontends/Painter.h"
|
||||||
|
|
||||||
|
#include "MetricsInfo.h"
|
||||||
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
|
|
||||||
@ -55,6 +59,8 @@ void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
|
|||||||
|
|
||||||
void InsetMathComment::draw(PainterInfo & pi, int x, int y) const
|
void InsetMathComment::draw(PainterInfo & pi, int x, int y) const
|
||||||
{
|
{
|
||||||
|
Dimension const & dim = dimension(*pi.base.bv);
|
||||||
|
pi.pain.fillRectangle(x, y - dim.asc, dim.wid, dim.height(), Color_notebg);
|
||||||
cell(0).draw(pi, x, y);
|
cell(0).draw(pi, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user