fix(android): the Copy buttons were ellipses, not pills
A fixed radius of 26 on a button only 40 tall makes the corners meet, and the shape stops being a rounded rectangle at all. The radius is now recomputed from the height whenever it changes - the height is set after creation, which is why a constant could never be right. And the small row buttons take a moderate radius rather than the full pill: they are low and wide, and a stadium shape read as an oval. The fully rounded form stays where the reference puts it, on the main actions. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -571,6 +571,9 @@ begin
|
||||
Result.Margins.Rect := RectF(8, 6, 0, 6);
|
||||
Result.Width := 96;
|
||||
Result.Tag := ATag;
|
||||
// Arrondi modere : ces boutons sont bas et larges, une pilule les rendait
|
||||
// ovales. La forme pleinement arrondie reste aux actions principales.
|
||||
SetCornerRadius(Result, 14);
|
||||
end;
|
||||
|
||||
procedure TForm8.BuildDetail;
|
||||
|
||||
Reference in New Issue
Block a user