mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
#11925 Remove the gap between button frame and button background (by Daniel Ramoeller)
This commit is contained in:
parent
c4c62f7185
commit
3d616bfc79
@ -424,8 +424,8 @@ void GuiPainter::buttonText(int x, int baseline, docstring const & s,
|
||||
|
||||
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