From 5e7ef0cabec53b6587ac9c9d1acdb2caadaca513 Mon Sep 17 00:00:00 2001 From: Antonia Heinen Date: Sun, 16 Jun 2024 13:08:24 +0200 Subject: [PATCH] Rounded corners --- Squello-Core.package/SPBCard.class/instance/buildUI.st | 4 +++- .../SPBCard.class/instance/defaultCornerRadius.st | 4 ++++ Squello-Core.package/SPBCard.class/methodProperties.json | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Squello-Core.package/SPBCard.class/instance/defaultCornerRadius.st diff --git a/Squello-Core.package/SPBCard.class/instance/buildUI.st b/Squello-Core.package/SPBCard.class/instance/buildUI.st index a70db70e..54c605ce 100644 --- a/Squello-Core.package/SPBCard.class/instance/buildUI.st +++ b/Squello-Core.package/SPBCard.class/instance/buildUI.st @@ -5,7 +5,9 @@ buildUI self updateAssigneeCount; updateLabelIcons; - setCardHeight. + setCardHeight; + cornerRadius: self defaultCornerRadius; + cornerStyle: #rounded. self titleModel position: self position + (self padding@self padding). self assigneeModel position: self position + self extent - self assigneeOffset. self statusModel position: self position + self extent - self statusOffset. diff --git a/Squello-Core.package/SPBCard.class/instance/defaultCornerRadius.st b/Squello-Core.package/SPBCard.class/instance/defaultCornerRadius.st new file mode 100644 index 00000000..98e9e341 --- /dev/null +++ b/Squello-Core.package/SPBCard.class/instance/defaultCornerRadius.st @@ -0,0 +1,4 @@ +constants +defaultCornerRadius + + ^ 8. \ No newline at end of file diff --git a/Squello-Core.package/SPBCard.class/methodProperties.json b/Squello-Core.package/SPBCard.class/methodProperties.json index 7b6b8e25..78725728 100644 --- a/Squello-Core.package/SPBCard.class/methodProperties.json +++ b/Squello-Core.package/SPBCard.class/methodProperties.json @@ -32,7 +32,7 @@ "buildNote:" : "FP 5/20/2024 20:02", "buildStatusText" : "AH 5/25/2024 16:59", "buildTitle" : "AH 6/14/2024 12:14", - "buildUI" : "AH 6/14/2024 12:16", + "buildUI" : "AH 6/16/2024 13:06", "calculateLabelPositionFor:" : "mcr 8/4/2022 01:35", "cardIndicatorExtent" : "lo 8/1/2022 11:52", "changeProvider" : "lo 7/8/2022 15:38", @@ -40,6 +40,7 @@ "column" : "tk 7/30/2022 21:53", "column:" : "tk 7/30/2022 21:53", "currentColumn" : "tk 7/30/2022 21:53", + "defaultCornerRadius" : "AH 6/16/2024 13:08", "defaultLowerIndicatorPosition" : "mcr 8/4/2022 01:45", "defaultTopLabelPosition" : "mcr 8/4/2022 01:33", "defaultUpperIndicatorPosition" : "mcr 8/4/2022 01:45",