Skip to content

Commit

Permalink
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -8,8 +8,11 @@ applyUserInterfaceTheme
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]).
"make color and borderColor darker or lighter depending on color"
"if color is dark, make it lighter, else darker"
"this is what color makeForegroundColor is taking care of - it returns white or black"
self color: (self color alphaMixed: 0.75 with: self color makeForegroundColor).
self borderColor: (self color alphaMixed: 0.75 with: self color makeForegroundColor).
textColor := self color makeForegroundColor.
].
font := (self userInterfaceTheme get: #font for: PluggableButtonMorph).
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBCard.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -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 13:36",
"applyUserInterfaceTheme" : "AH 6/15/2024 15:01",
"assigneeModel" : "tk 8/2/2022 23:27",
"assigneeModel:" : "tk 8/2/2022 23:27",
"assigneeOffset" : "lo 8/1/2022 11:45",

0 comments on commit 06abf2c

Please sign in to comment.