Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.404.mcz
==================== Summary ====================
Name: Graphics-mt.404
Author: mt
Time: 2 December 2018, 11:49:55.694325 am
UUID: c61bf172-8ce2-2b42-9ded-3b10fa30cf8d
Ancestors: Graphics-pre.403
Adds an infix version for Rectangle >> #center:extent: for convenience.
The name #inflate: is subject to discussion. :-)
=============== Diff against Graphics-pre.403 ===============
Item was added:
+ ----- Method: Point>>inflate: (in category 'converting') -----
+ inflate: aPoint
+ "Answer a Rectangle whose center is the receiver and whose extent is
+ aPoint. This is one of the infix ways of expressing the creation of a
+ rectangle."
+
+ ^Rectangle center: self extent: aPoint!
Marcel Taeumel uploaded a new version of 60Deprecated to project The Trunk:
http://source.squeak.org/trunk/60Deprecated-mt.27.mcz
==================== Summary ====================
Name: 60Deprecated-mt.27
Author: mt
Time: 2 December 2018, 11:11:20.814325 am
UUID: 0133c524-d990-db4f-8a76-de226601891d
Ancestors: 60Deprecated-pre.26
Deprecations from Morphic-mt.1468
=============== Diff against 60Deprecated-pre.26 ===============
Item was added:
+ ----- Method: BorderedMorph>>setBorderWidth:borderColor: (in category '*60Deprecated-private') -----
+ setBorderWidth: w borderColor: bc
+
+ self deprecated: 'mt: Use #borderStyle: or #borderWidth:/Color: directly.'.
+
+ self borderWidth: w.
+ self borderColor: bc.!
Item was added:
+ ----- Method: BorderedMorph>>setColor:borderWidth:borderColor: (in category '*60Deprecated-private') -----
+ setColor: c borderWidth: w borderColor: bc
+
+ self deprecated: 'mt: Use #borderStyle: or #borderWidth:/Color: directly.'.
+
+ self color: c.
+ self borderWidth: w.
+ self borderColor: bc.!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1468.mcz
==================== Summary ====================
Name: Morphic-mt.1468
Author: mt
Time: 2 December 2018, 11:09:37.078325 am
UUID: f2fb9cd4-6b5a-9941-adf6-0ecba9b669e5
Ancestors: Morphic-mt.1467
Two minor fixes in the realm of BorderedMorph:
1) Fixes a small issue with translucent borders.
2) Deprecates two set* messages.
=============== Diff against Morphic-mt.1467 ===============
Item was removed:
- ----- Method: BorderedMorph>>setBorderWidth:borderColor: (in category 'private') -----
- setBorderWidth: w borderColor: bc
- self borderWidth: w.
- self borderColor: bc.!
Item was removed:
- ----- Method: BorderedMorph>>setColor:borderWidth:borderColor: (in category 'private') -----
- setColor: c borderWidth: w borderColor: bc
- self color: c.
- self borderWidth: w.
- self borderColor: bc.!
Item was changed:
----- Method: FormCanvas>>frameAndFillRectangle:fillColor:borderWidth:topLeftColor:bottomRightColor: (in category 'drawing-rectangles') -----
frameAndFillRectangle: r fillColor: fillColor borderWidth: borderWidth topLeftColor: topLeftColor bottomRightColor: bottomRightColor
| w h rect |
"First use quick code for top and left borders and fill"
self frameAndFillRectangle: r
fillColor: fillColor
borderWidth: borderWidth
borderColor: topLeftColor.
+
+ "Return here for duplicate colors. Makes translucent borders work better."
+ topLeftColor = bottomRightColor ifTrue: [^ self].
"Now use slow code for bevelled bottom and right borders"
bottomRightColor isTransparent ifFalse: [
borderWidth isNumber
ifTrue: [w := h := borderWidth]
ifFalse: [w := borderWidth x. h := borderWidth y].
rect := r translateBy: origin.
self setFillColor: bottomRightColor.
port
frameRectRight: rect width: w;
frameRectBottom: rect height: h].
!
Item was changed:
----- Method: MorphHierarchyListMorph>>createContainer (in category 'private') -----
createContainer
"Private - Create a container"
| container |
container := BorderedMorph new.
container extent: (self world extent * (1 / 4 @ (2 / 3))) rounded.
container layoutPolicy: TableLayout new.
container hResizing: #rigid.
container vResizing: #rigid.
container
+ color: (Color gray: 0.9);
+ borderWidth: 1;
- setColor: (Color gray: 0.9)
- borderWidth: 1
borderColor: Color gray.
container layoutInset: 0.
"container useRoundedCorners."
""
container setProperty: #morphHierarchy toValue: true.
container setNameTo: 'Objects Hierarchy' translated.
""
^ container!