Using visualization options instead of hardcoded default values.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-05-30 10:38:16 -05:00
parent 2a07efd48c
commit aee8bc24d4

View File

@ -613,7 +613,12 @@ TiddlyWiki >> networkView [
{ #category : #accessing }
TiddlyWiki >> networkViewBackground [
self configDictonary at: 'networkView' at: 'background' ifAbsentPut: [Color lightGray]
^ self configDictonary at: 'networkView' at: 'background' ifAbsentPut: [Color lightGray]
]
{ #category : #accessing }
TiddlyWiki >> networkViewForeground [
^ self configDictonary at: 'networkView' at: 'background' ifAbsentPut: [Color blue]
]
{ #category : #accessing }
@ -624,8 +629,8 @@ TiddlyWiki >> networkViewHighlightingCreator: creatorName [
stencil: [ :each |
| color size |
color := (each creator = creatorName)
ifTrue: [ Color blue ]
ifFalse: [ Color lightGray ].
ifTrue: [ self networkViewForeground ]
ifFalse: [ self networkViewBackground ].
size := 5 @ 5.
BlElement new background: color; size: size ];
with: self tiddlers.