[Pkg] The Trunk: Morphic-mt.1096.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Apr 1 09:02:11 UTC 2016


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

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

Name: Morphic-mt.1096
Author: mt
Time: 1 April 2016, 11:01:41.051613 am
UUID: f09dd27a-9b91-4732-b565-022ab8bb86a8
Ancestors: Morphic-mt.1095

Only show a shadow for the new-style balloon morphs if the balloon color is not translucent (due to simplified drawing code for shadow).

You can change the color of balloon morphs via BalloonMorph >> #balloonColor:.

Note that #menuAppearance3d still controls shadows in many places such as windows, menus, and user dialog morphs.

=============== Diff against Morphic-mt.1095 ===============

Item was changed:
  ----- Method: NewBalloonMorph>>initialize (in category 'initialization') -----
  initialize
  
  	super initialize.
  	
  	self
  		borderWidth: self defaultBorderWidth;
  		borderColor: self defaultBorderColor;
+ 		color: self defaultColor;
+ 		hasDropShadow: (Preferences menuAppearance3d and: [self defaultColor isTranslucent not]);
- 		color: (Preferences menuAppearance3d
- 			ifTrue: [self defaultColor alpha: 1.0]
- 			ifFalse: [self defaultColor]);
- 		hasDropShadow: Preferences menuAppearance3d;
  		shadowOffset: 1 at 1;
  		shadowColor: (self color muchDarker muchDarker alpha: 0.333);
  		orientation: #bottomLeft.
  		
  	MenuMorph roundedMenuCorners
  		ifTrue: [self cornerStyle: #rounded].
  
  	textMorph := TextMorph new
  		wrapFlag: false;
  		lock;
  		yourself.
  	
  	self addMorph: textMorph.!



More information about the Packages mailing list