python: improve ACD's CSS
Some colleagues complained that the highlighting of edges and nodes in the ACD display where not very readable, especially when sharing screen during some video call. This should improve it. * python/spot/__init__.py (acd): Fill the contents of the nodes when they are highlighted. Add some glowing effect the the highlighted edges. * tests/python/zlktree.ipynb: Adjust.
This commit is contained in:
parent
ddbe0e32b0
commit
465210cbc9
2 changed files with 148 additions and 134 deletions
|
|
@ -517,8 +517,10 @@ class acd:
|
||||||
num = _acdnum
|
num = _acdnum
|
||||||
_acdnum += 1
|
_acdnum += 1
|
||||||
style = '''
|
style = '''
|
||||||
.acdhigh ellipse,.acdacc ellipse,.acdacc path,.acdacc polygon{stroke:green;}
|
.acdhigh ellipse,.acdacc ellipse{stroke:green;fill:rgb(220,255,220);}
|
||||||
.acdhigh polygon,.acdrej ellipse,.acdrej path,.acdrej polygon{stroke:red;}
|
.acdhigh polygon,.acdrej ellipse{stroke:red;fill:rgb(255,220,220);}
|
||||||
|
.acdacc polygon,.acdacc path{stroke:green;filter:drop-shadow(green 0 0 2px);}
|
||||||
|
.acdrej polygon,.acdrej path{stroke:red;filter:drop-shadow(red 0 0 2px);}
|
||||||
.acdbold ellipse,.acdbold polygon,.acdbold path{stroke-width:2;}
|
.acdbold ellipse,.acdbold polygon,.acdbold path{stroke-width:2;}
|
||||||
.acdrej polygon{fill:red;}
|
.acdrej polygon{fill:red;}
|
||||||
.acdacc polygon{fill:green;}
|
.acdacc polygon{fill:green;}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue