The Trunk: Morphic-mt.1250.mcz

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

The Trunk: Morphic-mt.1250.mcz

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

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

Name: Morphic-mt.1250
Author: mt
Time: 10 August 2016, 1:26:32.344966 pm
UUID: 36b73fd3-3ae7-dc46-9cd8-52e7199c652c
Ancestors: Morphic-mt.1249

Fixes a bug regarding shadows. When toggling the shadow via the Theme menu, update all windows in the world.

In the long term, we might want to refactor the #menuAppearance3d preference. There is much room for improvement in the shadow-related source code.

=============== Diff against Morphic-mt.1249 ===============

Item was changed:
  ----- Method: SystemWindow>>setDefaultParameters (in category 'initialization') -----
  setDefaultParameters
 
+ Preferences menuAppearance3d
+ ifFalse: [self hasDropShadow: false]
+ ifTrue: [
+ self addDropShadow.
+ self hasDropShadow: self isKeyWindow. "maybe turn off again"].
- Preferences menuAppearance3d ifTrue: [
- self addDropShadow.
- self hasDropShadow: self isKeyWindow. "maybe turn off again"].
 
  self borderWidth: (self userInterfaceTheme borderWidth ifNil: [1]).
  label font: (self userInterfaceTheme titleFont ifNil: [TextStyle defaultFont]).!

Item was changed:
  ----- Method: TheWorldMainDockingBar>>toggleShadows (in category 'submenu - extras') -----
  toggleShadows
 
+ Preferences toggle: #menuAppearance3d.
+
+ (Smalltalk classNamed: #SystemWindow) ifNotNil: [:c |
+ c refreshAllWindows; reconfigureWindowsForFocus].
+ (Smalltalk classNamed: #TheWorldMainDockingBar) ifNotNil: [:c |
+ c updateInstances].!
- Preferences toggle: #menuAppearance3d.!