Skip to content

Commit bfb3a61

Browse files
authored
Merge pull request #11094 from demarey/move-over-color-to-theme
Specify the mouse over color in the theme rather than hardcode it.
2 parents 7784e0c + caf1b81 commit bfb3a61

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

src/Morphic-Widgets-FastTable/FTSelectableMorph.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FTSelectableMorph >> mouseLeave: evt [
4343

4444
{ #category : #accessing }
4545
FTSelectableMorph >> mouseOverColor [
46-
^ self theme backgroundColor darker darker
46+
^ self theme mouseOverColor
4747
]
4848

4949
{ #category : #initialization }

src/Polymorph-Widgets/PharoDarkTheme.class.st

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ PharoDarkTheme >> menuItemDisabledTextColorFor: aMenuItem [
341341
^ Color lightGray
342342
]
343343

344+
{ #category : #'accessing - colors' }
345+
PharoDarkTheme >> mouseOverColor [
346+
^ self lightBackgroundColor
347+
]
348+
344349
{ #category : #initialization }
345350
PharoDarkTheme >> newRadioMarkerForm [
346351
"Answer a new checkbox marker form."

src/Polymorph-Widgets/UITheme.class.st

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,6 +2752,15 @@ UITheme >> morphTreeSplitterPressedFillStyleFor: aSplitter [
27522752
radial: false
27532753
]
27542754

2755+
{ #category : #'accessing - colors' }
2756+
UITheme >> mouseOverColor [
2757+
"This color is used when hovering a raw of a list / table.
2758+
This color should be different from the default background color and from the raw alternate color
2759+
(see FTTableContainerMorph>>#alternateRowsColor."
2760+
2761+
^ self backgroundColor darker darker
2762+
]
2763+
27552764
{ #category : #'fill-styles' }
27562765
UITheme >> multiFormFillStyleFrom: anArray cornerWidths: widthArray in: aRectangle [
27572766
"Answer a composite fill style from the given forms and central colour

0 commit comments

Comments
 (0)