mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 14:04:25 +00:00
#11925 Remove the gap between button frame and button background (by Daniel Ramoeller)
(cherry picked from commit 3d616bfc79
)
This commit is contained in:
parent
6a6cd13e64
commit
dd18429aaa
@ -563,8 +563,8 @@ void GuiPainter::buttonText(int x, int baseline, docstring const & s,
|
|||||||
|
|
||||||
static int const d = offset / 2;
|
static int const d = offset / 2;
|
||||||
|
|
||||||
fillRectangle(x + d + 1, baseline - ascent + 1, width - offset - 1,
|
fillRectangle(x + d, baseline - ascent, width - offset,
|
||||||
ascent + descent - 1, back);
|
ascent + descent, back);
|
||||||
rectangle(x + d, baseline - ascent, width - offset, ascent + descent, frame);
|
rectangle(x + d, baseline - ascent, width - offset, ascent + descent, frame);
|
||||||
text(x + offset, baseline, s, font);
|
text(x + offset, baseline, s, font);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user