diff --git a/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st b/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st new file mode 100644 index 00000000..a3738966 --- /dev/null +++ b/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st @@ -0,0 +1,11 @@ +initialization +applyUserInterfaceTheme + + | textColor font | + super applyUserInterfaceTheme. + self color: ((self userInterfaceTheme get: #color for: PluggableButtonMorph) ifNil: [Color red]). + textColor := (self userInterfaceTheme get: #textColor for: PluggableButtonMorph) ifNil: [Color white]. + font := (self userInterfaceTheme get: #font for: PluggableButtonMorph). + self assigneeModel textColor: textColor; font: font. + self statusModel textColor: textColor; font: font. + self titleModel textColor: textColor"; font: font". \ No newline at end of file diff --git a/Squello-Core.package/SPBCard.class/instance/buildUI.st b/Squello-Core.package/SPBCard.class/instance/buildUI.st index f02f6ddd..e53ddd4a 100644 --- a/Squello-Core.package/SPBCard.class/instance/buildUI.st +++ b/Squello-Core.package/SPBCard.class/instance/buildUI.st @@ -8,4 +8,5 @@ buildUI setCardHeight. self assigneeModel position: self position + self extent - self assigneeOffset. self statusModel position: self position + self extent - self statusOffset. - self resizeIndicatorFields. \ No newline at end of file + self resizeIndicatorFields. + self applyUserInterfaceTheme. \ 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 70787f37..f8066793 100644 --- a/Squello-Core.package/SPBCard.class/methodProperties.json +++ b/Squello-Core.package/SPBCard.class/methodProperties.json @@ -14,6 +14,7 @@ "addLabel:" : "lo 7/31/2022 16:27", "addLabelLocal:" : "tk 8/2/2022 23:12", "alignLabels" : "mcr 8/4/2022 01:36", + "applyUserInterfaceTheme" : "AH 6/14/2024 10:29", "assigneeModel" : "tk 8/2/2022 23:27", "assigneeModel:" : "tk 8/2/2022 23:27", "assigneeOffset" : "lo 8/1/2022 11:45", @@ -30,7 +31,7 @@ "buildNote:" : "FP 5/20/2024 20:02", "buildStatusText" : "AH 5/25/2024 16:59", "buildTitle" : "mcr 8/4/2022 01:41", - "buildUI" : "AH 5/25/2024 17:05", + "buildUI" : "AH 6/14/2024 10:37", "calculateLabelPositionFor:" : "mcr 8/4/2022 01:35", "cardIndicatorExtent" : "lo 8/1/2022 11:52", "changeProvider" : "lo 7/8/2022 15:38",