mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-08 16:47:38 +03:00
move time left to after pages left in chapter
This commit is contained in:
parent
655c18d89c
commit
07d6ff18db
@ -452,8 +452,6 @@ void EpubReaderActivity::renderStatusBar(const int orientedMarginRight, const in
|
|||||||
if (showProgress) {
|
if (showProgress) {
|
||||||
// Calculate progress in book
|
// Calculate progress in book
|
||||||
const float sectionChapterProg = static_cast<float>(section->currentPage) / section->pageCount;
|
const float sectionChapterProg = static_cast<float>(section->currentPage) / section->pageCount;
|
||||||
const uint8_t bookProgress = epub->calculateProgress(currentSpineIndex, sectionChapterProg);
|
|
||||||
|
|
||||||
std::string timeLeftText;
|
std::string timeLeftText;
|
||||||
if (SETTINGS.showTimeLeftInChapter && SETTINGS.readingSpeedWpm > 0) {
|
if (SETTINGS.showTimeLeftInChapter && SETTINGS.readingSpeedWpm > 0) {
|
||||||
const uint32_t wordsLeft = section->getWordsLeftFrom(section->currentPage);
|
const uint32_t wordsLeft = section->getWordsLeftFrom(section->currentPage);
|
||||||
@ -463,6 +461,8 @@ void EpubReaderActivity::renderStatusBar(const int orientedMarginRight, const in
|
|||||||
timeLeftText = formatMinutes(minutesLeft);
|
timeLeftText = formatMinutes(minutesLeft);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const uint8_t bookProgress = epub->calculateProgress(currentSpineIndex, sectionChapterProg);
|
||||||
|
|
||||||
|
|
||||||
// Right aligned text for progress counter
|
// Right aligned text for progress counter
|
||||||
const std::string progress = std::to_string(section->currentPage + 1) + "/" + std::to_string(section->pageCount) +
|
const std::string progress = std::to_string(section->currentPage + 1) + "/" + std::to_string(section->pageCount) +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user