fix #22018: Filename as black text on dark grey difficult to read
Simplify code of MidiTrack and MidiFile classes