The Trunk: Morphic-mt.983.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.983.mcz

commits-2
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!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Morphic-mt.983.mcz

marcel.taeumel