Skip to content

Commit

Permalink
Same with menuSelectionColor
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Aug 13, 2019
1 parent 5f8a64a commit 67b4696
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/Morphic-Base/HaloMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -963,13 +963,10 @@ HaloMorph >> handlerForBlueButtonDown: anEvent [

{ #category : #initialization }
HaloMorph >> initialize [
"initialize the state of the receiver"
super initialize.

growingOrRotating := false.
self borderStyle: (SimpleBorder
width: 2
color: self theme settings menuSelectionColor)
self borderStyle: (SimpleBorder width: 2 color: self theme menuSelectionColor)
]

{ #category : #accessing }
Expand Down
4 changes: 2 additions & 2 deletions src/Morphic-Base/MenuItemMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ MenuItemMorph >> select: evt [
MenuItemMorph >> selectionFillStyle [
"answer the fill style to use with the receiver is the selected
element"
Display depth <= 2 ifTrue: [^ Color gray].
^ self theme settings menuSelectionColor.

Display depth <= 2 ifTrue: [ ^ Color gray ].
^ self theme menuSelectionColor
]

{ #category : #private }
Expand Down
2 changes: 1 addition & 1 deletion src/Morphic-Base/SelectionMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ SelectionMorph >> defaultBorderColor [
{ #category : #initialization }
SelectionMorph >> defaultColor [
"answer the default color/fill style for the receiver"
^ (self theme settings menuSelectionColor) alpha: 0.08

^ self theme menuSelectionColor alpha: 0.08
]

{ #category : #'submorphs-add/remove' }
Expand Down
2 changes: 1 addition & 1 deletion src/Morphic-Widgets-Pluggable/PluggableListMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ PluggableListMorph >> selectionColor: aColor [
PluggableListMorph >> selectionColorToUse [
"Answer the colour to use for selected items."

^ selectionColorToUse ifNil: [self theme settings selectionColor]
^ selectionColorToUse ifNil: [ self theme selectionColor ]
]

{ #category : #accessing }
Expand Down
9 changes: 7 additions & 2 deletions src/Polymorph-Widgets/UITheme.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,7 @@ UITheme >> menuItemSelectedFillStyleFor: aMenuItem [

Display depth <= 2
ifTrue: [ ^ Color gray ].
preferenced := self settings menuSelectionColor.
preferenced := self menuSelectionColor.
baseColor := preferenced ifNil: [ aMenuItem owner color negated ] ifNotNil: [ preferenced ].
self preferGradientFill
ifFalse: [ ^ baseColor ].
Expand Down Expand Up @@ -2660,6 +2660,11 @@ UITheme >> menuPinForm [
^ self iconNamed: #menuPinForm
]

{ #category : #'accessing colors' }
UITheme >> menuSelectionColor [
^ self settings menuSelectionColor
]

{ #category : #'accessing colors' }
UITheme >> menuShadowColor [
^ self settings menuShadowColor
Expand Down Expand Up @@ -2713,7 +2718,7 @@ UITheme >> menubarFillStyleFor: aMenubar [

{ #category : #'fill-styles-menubar' }
UITheme >> menubarItemSelectionFillStyleFor: aMenubarItem [
^ self settings menuSelectionColor
^ self menuSelectionColor
]

{ #category : #'fill-styles-menubar' }
Expand Down

0 comments on commit 67b4696

Please sign in to comment.