Improving Markdown document tree node views.
This commit is contained in:
parent
e9465349e3
commit
ee2ade0509
@ -8,3 +8,18 @@ Class {
|
||||
PPCMContainer >> accept: visitor [
|
||||
^ visitor visitContainer: self
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
PPCMContainer >> viewBody [
|
||||
|
||||
| aText |
|
||||
aText := self className asRopedText.
|
||||
|
||||
self children do: [ :child |
|
||||
aText append: ' ' asRopedText.
|
||||
aText append: (child className asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor) ].
|
||||
|
||||
|
||||
^ aText
|
||||
]
|
||||
|
@ -56,7 +56,7 @@ PPCMHeader >> viewBody [
|
||||
BrGlamorousColors disabledButtonTextColor).
|
||||
aText append: ('= "' asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor).
|
||||
aText append: (child className asRopedText foreground:
|
||||
aText append: (child text asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor).
|
||||
aText append:
|
||||
('"' asRopedText foreground:
|
||||
|
@ -19,3 +19,25 @@ PPCMListItem >> initialize [
|
||||
PPCMListItem >> isBlockLevel [
|
||||
^ true
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
PPCMListItem >> viewBody [
|
||||
|
||||
| aText |
|
||||
aText := self className asRopedText.
|
||||
|
||||
self children do: [ :child |
|
||||
aText append: ' ' asRopedText.
|
||||
aText append: (child className asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor).
|
||||
aText append: ('= "' asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor).
|
||||
aText append: (child className asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor).
|
||||
aText append:
|
||||
('"' asRopedText foreground:
|
||||
BrGlamorousColors disabledButtonTextColor) ].
|
||||
|
||||
|
||||
^ aText
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user