Format waveform duration in a nicer way

This commit is contained in:
xenakios
2018-02-06 21:15:20 +02:00
parent 85f3552af4
commit a589f133d2
2 changed files with 20 additions and 1 deletions

View File

@ -496,7 +496,7 @@ void WaveformComponent::paint(Graphics & g)
}
g.setColour(Colours::aqua.darker());
g.drawText(GetFileCallback().getFileName(), 2, m_topmargin + 2, getWidth(), 20, Justification::topLeft);
g.drawText(String(thumblen, 1), getWidth() - 100, m_topmargin + 2, 100, 20, Justification::topRight);
g.drawText(secondsToString(thumblen), getWidth() - 100, m_topmargin + 2, 100, 20, Justification::topRight);
}
void WaveformComponent::timerCallback()