Skip to content

Commit

Permalink
Made #decorateToolbarItem: and #setUpIconForMenuItem: on CmdCommand u…
Browse files Browse the repository at this point in the history
…se the FormSet for the icon.
  • Loading branch information
Rinzwind committed Feb 18, 2024
1 parent 57ac5ef commit 02f48dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Calypso-Browser/CmdCommand.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ CmdCommand >> decorateToolbarItem: aBrowserToolbarItem [
self description ifNotNil: [ :d |
aBrowserToolbarItem setBalloonText: d ].

self defaultMenuIcon ifNotNil: [:icon |
aBrowserToolbarItem addIcon: icon asMorph]
self defaultMenuIconFormSet ifNotNil: [:iconFormSet |
aBrowserToolbarItem addIcon: iconFormSet asMorph]
]

{ #category : '*Calypso-Browser' }
Expand Down
4 changes: 2 additions & 2 deletions src/Commander-Activators-ContextMenu/CmdCommand.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ CmdCommand >> registerContextMenuItemsFor: aCommandItem withBuilder: aBuilder [
{ #category : '*Commander-Activators-ContextMenu' }
CmdCommand >> setUpIconForMenuItem: aMenuItemMorph [

self defaultMenuIcon ifNotNil: [:icon |
aMenuItemMorph icon: icon ]
self defaultMenuIconFormSet ifNotNil: [:iconFormSet |
aMenuItemMorph iconFormSet: iconFormSet ]
]

{ #category : '*Commander-Activators-ContextMenu' }
Expand Down

0 comments on commit 02f48dc

Please sign in to comment.