Skip to content

Commit

Permalink
fixed buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Morgensterns committed Jul 6, 2024
1 parent 1f78c35 commit fbe0277
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/GM-TE/GMTEImageButton.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@ GMTEImageButton >> doButtonAction [

{
#category : #accessing,
#'squeak_changestamp' : 'jj 6/22/2024 16:48'
#'squeak_changestamp' : 'Alex M 7/6/2024 23:07'
}
GMTEImageButton >> dyeSprite: anImage with: aColor [

^ anImage copy
replaceColor: Color white withColor: Color transparent;
replaceColor: Color black withColor: aColor;
yourself
"replaceColor: Color black withColor: aColor;
yourself"
dyed: aColor
]

{
Expand Down

0 comments on commit fbe0277

Please sign in to comment.