Skip to content

Commit

Permalink
Highlights active card
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonia Heinen committed Jun 14, 2024
1 parent 81cbabd commit ab7c239
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
toggleIsHighlighted

self subclassResponsibility.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"removeLabelLocal:" : "lo 7/31/2022 17:04",
"title" : "lo 7/31/2022 16:06",
"toggleClosed" : "AH 5/25/2024 16:50",
"toggleIsHighlighted" : "AH 6/14/2024 13:19",
"updateDescription:" : "lo 7/31/2022 17:04",
"updateTitle:" : "lo 7/31/2022 17:04" } }
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
update sidebar
changeActiveCardTo: anSPBCard

self sidebar activeCard toggleIsHighlighted.
anSPBCard toggleIsHighlighted.
self sidebar activeCard: anSPBCard.
(self usedBuilder widgetAt: #sidebarTitle) setText: anSPBCard title asText.
(self usedBuilder widgetAt: #sidebarDescription) setText: anSPBCard description asText.
Expand Down
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBBoard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"buildSidebarSpecWith:width:" : "AH 5/25/2024 15:26",
"buildSidebarTitleSpecWith:" : "lo 8/1/2022 11:08",
"buildWith:" : "FP 5/27/2024 18:00",
"changeActiveCardTo:" : "mcr 8/1/2022 00:54",
"changeActiveCardTo:" : "AH 6/14/2024 13:18",
"changeProvider" : "lo 7/8/2022 14:00",
"changeProvider:" : "lo 7/8/2022 15:29",
"chooseProjectFrom:" : "mcr 8/4/2022 01:19",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ applyUserInterfaceTheme
borderWidth: self borderWidthMultiplier * ((self userInterfaceTheme get: #borderWidth for: PluggableButtonMorph) ifNil: [1]);
borderColor: ((self userInterfaceTheme get: #borderColor for: PluggableButtonMorph) ifNil: [Color red]).
textColor := (self userInterfaceTheme get: #textColor for: PluggableButtonMorph) ifNil: [Color white].
self isHighlighted ifTrue: [
self color: ((self color luminance <= 0.5) ifTrue: [self color alphaMixed: 0.75 with: Color white] ifFalse: [self color alphaMixed: 0.75 with: Color black]).
self borderColor: ((self borderColor luminance <= 0.5) ifTrue: [self borderColor alphaMixed: 0.75 with: Color white] ifFalse: [self borderColor alphaMixed: 0.75 with: Color black]).
textColor := self color makeForegroundColor.
].
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".
self titleModel textColor: textColor.
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBCard.class/instance/initialize.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ initialize
buildTitle;
buildAssigneeText;
buildStatusText;
buildIndicatorDetection.
buildIndicatorDetection;
isHighlighted: false.

self isClosed ifNil: [self isClosed: false].
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/isHighlighted..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
isHighlighted: aBoolean

isHighlighted := aBoolean.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/isHighlighted.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
isHighlighted

^ isHighlighted.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
updating
toggleIsHighlighted

self isHighlighted: self isHighlighted not.
self applyUserInterfaceTheme.
7 changes: 5 additions & 2 deletions Squello-Core.package/SPBCard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +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 12:12",
"applyUserInterfaceTheme" : "AH 6/14/2024 13:36",
"assigneeModel" : "tk 8/2/2022 23:27",
"assigneeModel:" : "tk 8/2/2022 23:27",
"assigneeOffset" : "lo 8/1/2022 11:45",
Expand Down Expand Up @@ -50,9 +50,11 @@
"id:" : "LW 7/14/2022 10:47",
"inbetweenLabelOffset" : "lo 8/1/2022 11:18",
"indicateDroppointWith:" : "mcr 8/4/2022 01:45",
"initialize" : "AH 6/1/2024 17:58",
"initialize" : "AH 6/14/2024 13:20",
"isClosed" : "FP 5/27/2024 11:24",
"isClosed:" : "AH 5/25/2024 19:19",
"isHighlighted" : "AH 6/14/2024 13:14",
"isHighlighted:" : "AH 6/14/2024 13:14",
"isNote" : "FP 5/20/2024 20:00",
"isNote:" : "AH 5/25/2024 17:02",
"isRealCard" : "lo 7/31/2022 16:55",
Expand Down Expand Up @@ -87,6 +89,7 @@
"titleModel" : "tk 8/2/2022 23:24",
"titleModel:" : "tk 8/2/2022 23:24",
"toggleClosed" : "AH 6/1/2024 18:27",
"toggleIsHighlighted" : "AH 6/14/2024 13:18",
"update:with:" : "lo 8/3/2022 13:13",
"updateAssigneeCount" : "tk 8/2/2022 23:27",
"updateBalloonText" : "mcr 8/4/2022 01:50",
Expand Down
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBCard.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"labelModels",
"isNote",
"isClosed",
"statusModel" ],
"statusModel",
"isHighlighted" ],
"name" : "SPBCard",
"pools" : [
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
updating-local
toggleIsHighlighted

"crickets"
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"removeLabelLocal:" : "lo 7/31/2022 16:48",
"title" : "lo 7/31/2022 16:07",
"toggleClosed" : "AH 5/25/2024 16:51",
"toggleIsHighlighted" : "AH 6/14/2024 13:19",
"updateDescription:" : "lo 7/31/2022 18:18",
"updateTitle:" : "lo 7/31/2022 18:18" } }

0 comments on commit ab7c239

Please sign in to comment.