|
@@ -120,6 +120,18 @@ export class VexFlowVoiceEntry extends GraphicalVoiceEntry {
|
|
|
notehead.setStyle({ fillStyle: noteheadColor, strokeStyle: noteheadColor });
|
|
|
}
|
|
|
}
|
|
|
+ // set ledger line color. TODO coordinate this with VexFlowConverter.StaveNote(), where there's also still code for this, maybe unnecessarily.
|
|
|
+ if (noteheadColor === transparentColor) {
|
|
|
+ (vfStaveNote as any).setLedgerLineStyle({ fillStyle: noteheadColor, strokeStyle: noteheadColor, lineWidth: this.rules.LedgerLineWidth });
|
|
|
+ } else {
|
|
|
+ (vfStaveNote as any).setLedgerLineStyle({
|
|
|
+ fillStyle: this.rules.DefaultColorNotehead,
|
|
|
+ lineWidth: this.rules.LedgerLineWidth,
|
|
|
+ strokeStyle: this.rules.DefaultColorNotehead
|
|
|
+ });
|
|
|
+ // we could give the color (style) as noteheadColor, but then we need to figure out which note has the ledger line.
|
|
|
+ // otherwise ledger lines get the color of the top note, see Function Test Color.
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|