Skip to content

Commit

Permalink
Cards look consistent across themes now
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonia Heinen committed Jun 14, 2024
1 parent 5737031 commit f44cc3e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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".
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBCard.class/instance/buildUI.st
Original file line number Diff line number Diff line change
Expand Up @@ -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.
self resizeIndicatorFields.
self applyUserInterfaceTheme.
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBCard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit f44cc3e

Please sign in to comment.