mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +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;
|
||||
|
||||
fillRectangle(x + d + 1, baseline - ascent + 1, width - offset - 1,
|
||||
ascent + descent - 1, back);
|
||||
fillRectangle(x + d, baseline - ascent, width - offset,
|
||||
ascent + descent, back);
|
||||
rectangle(x + d, baseline - ascent, width - offset, ascent + descent, frame);
|
||||
text(x + offset, baseline, s, font);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user