diff --git a/Squello-Core.package/SPBAbstractCard.class/instance/toggleIsHighlighted.st b/Squello-Core.package/SPBAbstractCard.class/instance/toggleIsHighlighted.st new file mode 100644 index 00000000..2f4d6f70 --- /dev/null +++ b/Squello-Core.package/SPBAbstractCard.class/instance/toggleIsHighlighted.st @@ -0,0 +1,4 @@ +as yet unclassified +toggleIsHighlighted + + self subclassResponsibility. \ No newline at end of file diff --git a/Squello-Core.package/SPBAbstractCard.class/methodProperties.json b/Squello-Core.package/SPBAbstractCard.class/methodProperties.json index 983ee1b3..a0275b48 100644 --- a/Squello-Core.package/SPBAbstractCard.class/methodProperties.json +++ b/Squello-Core.package/SPBAbstractCard.class/methodProperties.json @@ -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" } } diff --git a/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st b/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st index 963d107b..63e5a136 100644 --- a/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st +++ b/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st @@ -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. diff --git a/Squello-Core.package/SPBBoard.class/methodProperties.json b/Squello-Core.package/SPBBoard.class/methodProperties.json index 6c4f2fe4..25beb63e 100644 --- a/Squello-Core.package/SPBBoard.class/methodProperties.json +++ b/Squello-Core.package/SPBBoard.class/methodProperties.json @@ -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", diff --git a/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st b/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st index d3aa7c35..a969d59e 100644 --- a/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st +++ b/Squello-Core.package/SPBCard.class/instance/applyUserInterfaceTheme.st @@ -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". \ No newline at end of file + self titleModel textColor: textColor. \ No newline at end of file diff --git a/Squello-Core.package/SPBCard.class/instance/initialize.st b/Squello-Core.package/SPBCard.class/instance/initialize.st index eab359d5..cce69972 100644 --- a/Squello-Core.package/SPBCard.class/instance/initialize.st +++ b/Squello-Core.package/SPBCard.class/instance/initialize.st @@ -8,6 +8,7 @@ initialize buildTitle; buildAssigneeText; buildStatusText; - buildIndicatorDetection. + buildIndicatorDetection; + isHighlighted: false. self isClosed ifNil: [self isClosed: false]. \ No newline at end of file diff --git a/Squello-Core.package/SPBCard.class/instance/isHighlighted..st b/Squello-Core.package/SPBCard.class/instance/isHighlighted..st new file mode 100644 index 00000000..da1c7854 --- /dev/null +++ b/Squello-Core.package/SPBCard.class/instance/isHighlighted..st @@ -0,0 +1,4 @@ +accessing +isHighlighted: aBoolean + + isHighlighted := aBoolean. \ No newline at end of file diff --git a/Squello-Core.package/SPBCard.class/instance/isHighlighted.st b/Squello-Core.package/SPBCard.class/instance/isHighlighted.st new file mode 100644 index 00000000..61f78e51 --- /dev/null +++ b/Squello-Core.package/SPBCard.class/instance/isHighlighted.st @@ -0,0 +1,4 @@ +accessing +isHighlighted + + ^ isHighlighted. \ No newline at end of file diff --git a/Squello-Core.package/SPBCard.class/instance/toggleIsHighlighted.st b/Squello-Core.package/SPBCard.class/instance/toggleIsHighlighted.st new file mode 100644 index 00000000..6ed64f0c --- /dev/null +++ b/Squello-Core.package/SPBCard.class/instance/toggleIsHighlighted.st @@ -0,0 +1,5 @@ +updating +toggleIsHighlighted + + self isHighlighted: self isHighlighted not. + 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 50172b32..00f3035a 100644 --- a/Squello-Core.package/SPBCard.class/methodProperties.json +++ b/Squello-Core.package/SPBCard.class/methodProperties.json @@ -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", @@ -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", @@ -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", diff --git a/Squello-Core.package/SPBCard.class/properties.json b/Squello-Core.package/SPBCard.class/properties.json index bd6d9b66..9bd89509 100644 --- a/Squello-Core.package/SPBCard.class/properties.json +++ b/Squello-Core.package/SPBCard.class/properties.json @@ -22,7 +22,8 @@ "labelModels", "isNote", "isClosed", - "statusModel" ], + "statusModel", + "isHighlighted" ], "name" : "SPBCard", "pools" : [ ], diff --git a/Squello-Core.package/SPBNullCard.class/instance/toggleIsHighlighted.st b/Squello-Core.package/SPBNullCard.class/instance/toggleIsHighlighted.st new file mode 100644 index 00000000..3f72b150 --- /dev/null +++ b/Squello-Core.package/SPBNullCard.class/instance/toggleIsHighlighted.st @@ -0,0 +1,4 @@ +updating-local +toggleIsHighlighted + + "crickets" \ No newline at end of file diff --git a/Squello-Core.package/SPBNullCard.class/methodProperties.json b/Squello-Core.package/SPBNullCard.class/methodProperties.json index 80c2ce8e..f0c4f938 100644 --- a/Squello-Core.package/SPBNullCard.class/methodProperties.json +++ b/Squello-Core.package/SPBNullCard.class/methodProperties.json @@ -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" } }