Skip to content

Commit

Permalink
Add Recolor Option to Right-Click Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Berger committed May 15, 2019
1 parent 7505e7c commit a07a266
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ defaultContextMenuContent
-
('delete' abandon)
-
('recolor' recolor)
-
('bring to front' comeToFront)
('send to back' goBehind)
-
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
openColorDialogWith: aColor selecting: aSymbol

^ self openColorDialogWith: aColor selecting: aSymbol on: self content
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
as yet unclassified
openColorDialogWith: aColor selecting: aSymbol on: aMorph

^ (NewColorPickerMorph
on: aMorph
originalColor: aColor
setColorSelector: aSymbol)
openNear: self fullBoundsInWorld;
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
recolor

^ self openColorDialogWith: self content color selecting: #color:
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"copyChildToHand" : "MK 7/24/2018 14:08",
"createContextMenu" : "WoC 7/24/2018 16:54",
"createHandleOnMove:" : "LM 7/24/2018 17:35",
"defaultContextMenuContent" : "LM 7/13/2018 14:59",
"defaultContextMenuContent" : "jb 5/15/2019 18:18",
"disablePresentationMode" : "WoC 6/17/2018 18:44",
"dragBottomLeftEvent:" : "jb 5/9/2019 11:12",
"dragBottomRightEvent:" : "LB 7/24/2018 13:50",
Expand Down Expand Up @@ -39,9 +39,12 @@
"mouseDownPriority" : "jb 5/8/2019 18:01",
"notifySlideRescale:" : "MK 7/24/2018 14:08",
"onBorder:" : "jb 5/9/2019 11:24",
"openColorDialogWith:selecting:" : "jb 5/15/2019 18:29",
"openColorDialogWith:selecting:on:" : "jb 5/15/2019 18:28",
"openMenu:" : "WoC 7/24/2018 16:52",
"placeHandles" : "LB 7/6/2018 18:10",
"rasterResolution" : "WoC 7/25/2018 12:29",
"recolor" : "jb 5/15/2019 18:29",
"removeResizeHandles" : "jb 5/9/2019 12:09",
"removedMorph:" : "LM 7/25/2018 13:00",
"resizeChild" : "LB 7/25/2018 11:58",
Expand Down

0 comments on commit a07a266

Please sign in to comment.