app_server: Adjust borders of the resize knob depending on the handle size.

Appearance remains the same at the standard decorator sizes (12pt fonts),
but this looks better on larger font sizes. Unfortunately it doesn't
scale quite correctly; the scrollbars in Tracker do not align with this
quite correctly. Probably the -0/-1 need to be adjusted based on the
window border sizes, but we don't have those metrics readily available
in this function. Yet another reason all these classes need a major
refactor...
This commit is contained in:
Augustin Cavalier
2022-08-26 19:16:48 -04:00
parent 8f3508d9c5
commit 287712a647
@@ -450,7 +450,8 @@ DefaultDecorator::_DrawResizeKnob(BRect rect, bool full,
fDrawingEngine->FillRect(rect, gradient); fDrawingEngine->FillRect(rect, gradient);
BPoint offset1(15, 15), offset2(14, 14); BPoint offset1(rect.Width(), rect.Height()),
offset2(rect.Width() - 1, rect.Height() - 1);
fDrawingEngine->StrokeLine(BPoint(x, y) - offset1, fDrawingEngine->StrokeLine(BPoint(x, y) - offset1,
BPoint(x - offset1.x, y - 2), colors[0]); BPoint(x - offset1.x, y - 2), colors[0]);
fDrawingEngine->StrokeLine(BPoint(x, y) - offset2, fDrawingEngine->StrokeLine(BPoint(x, y) - offset2,