[squeak-dev] The Trunk: MorphicExtras-mt.307.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Feb 21 15:13:40 UTC 2022
Marcel Taeumel uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-mt.307.mcz
==================== Summary ====================
Name: MorphicExtras-mt.307
Author: mt
Time: 21 February 2022, 4:13:36.605875 pm
UUID: d5d63a59-0bb0-7546-9f6f-ca4d5aa121e7
Ancestors: MorphicExtras-mt.306
Complements Graphics-mt.483
=============== Diff against MorphicExtras-mt.306 ===============
Item was changed:
----- Method: FlapTab>>assumeString:font:orientation:color: (in category 'textual tabs') -----
assumeString: aString font: aFont orientation: orientationSymbol color: aColor
| aTextMorph workString tabStyle |
labelString := aString asString.
workString := orientationSymbol == #vertical
ifTrue:
[String streamContents:
[:s |
labelString do: [:c | s nextPut: c] separatedBy: [s nextPut: Character cr]]]
ifFalse: [labelString].
+ tabStyle := TextStyle new
- tabStyle := (TextStyle new)
- leading: 0;
newFontArray: (Array with: aFont).
aTextMorph := (TextMorph new setTextStyle: tabStyle)
contents: (workString asText addAttribute: (TextKern kern: 3)).
aTextMorph wrapFlag: true.
self removeAllMorphs.
self borderStyle: (BorderStyle raised width: 2).
aColor ifNotNil: [self color: aColor].
self addMorph: aTextMorph centered.
aTextMorph lock
"
FlapTab allSubInstancesDo: [:ft | ft reformatTextualTab]
"!
More information about the Squeak-dev
mailing list
|