[squeak-dev] The Trunk: Morphic-mt.983.mcz

commits at source.squeak.org commits at source.squeak.org
Tue May 19 14:53:53 UTC 2015


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.983.mcz

==================== Summary ====================

Name: Morphic-mt.983
Author: mt
Time: 19 May 2015, 4:53:15.621 pm
UUID: bc3f1fa9-6bbc-5844-92b3-4fc4f1d0065d
Ancestors: Morphic-mt.982

Make text selection color gray if the text morph has no keyboard focus. 

Why? Assumption that colorful means active and gray means inactive. We could add this for lists, too. Not sure.

=============== Diff against Morphic-mt.982 ===============

Item was changed:
  ----- Method: NewParagraph>>selectionColor (in category 'display') -----
  selectionColor
  	| color |
  	Display depth = 1 ifTrue: [^ Color veryLightGray].
  	Display depth = 2 ifTrue: [^ Color gray].
  	color := Preferences textHighlightColor.
+ 	self focused ifFalse: [color := Color gray: 0.9].
- 	self focused ifFalse: [color := color alphaMixed: 0.2 with: Color veryVeryLightGray].
  	^ color!



More information about the Squeak-dev mailing list