Commit d6e681af authored by Akikonata's avatar Akikonata

fixed highlight

parent 73fb6e45
...@@ -465,10 +465,10 @@ KityMinder.registerModule( "LayoutDefault", function () { ...@@ -465,10 +465,10 @@ KityMinder.registerModule( "LayoutDefault", function () {
case "sub": case "sub":
if ( highlight ) { if ( highlight ) {
Layout.highlightshape.fill( nodeStyle.highlight ).setOpacity( 1 ); Layout.highlightshape.fill( nodeStyle.highlight ).setOpacity( 1 );
node.getTextShape().fill( 'black' ); node.getTextShape().fill( node.getData( 'fontcolor' ) || 'black' );
} else { } else {
Layout.highlightshape.setOpacity( 0 ); Layout.highlightshape.setOpacity( 0 );
node.getTextShape().fill( 'white' ); node.getTextShape().fill( node.getData( 'fontcolor' ) || 'white' );
} }
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment