Skip to content

Add progress marker toggle in EPUB reader #1915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rinbadagin
Copy link

@Rinbadagin Rinbadagin commented Mar 15, 2025

This PR adds a toggle to hide/show the progress markers visible on the bottom of the viewer in EPUB files.
Settings post-change:
image
Page markers on (default, existing behaviour):
image
Page markers off (current progressionTitle falsy):
image
Page markers off (current progressionTitle truthy):
image

@Rinbadagin Rinbadagin changed the title feat(webui): Add progress marker toggle in EPUB reader Add progress marker toggle in EPUB reader Mar 15, 2025
@Rinbadagin Rinbadagin force-pushed the add_epub_progress_marker_toggle branch from e719996 to d428010 Compare March 16, 2025 00:09
@Rinbadagin
Copy link
Author

Just amended the PR to keep the current section name visible if known in the case where progress markers are off.

},
set: function (value: boolean): void {
this.settings.progressMarkers = value
this.$store.commit('setWebreaderProgressMarkers', value)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's not gonna do anything if there's no store action with that name. For the Epub reader, a single settings object is persisted with all the keys, like this.$store.commit('setEpubreaderSettings', this.settings)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad - force pushed to adjust

@Rinbadagin Rinbadagin force-pushed the add_epub_progress_marker_toggle branch from d428010 to d6a37e6 Compare March 19, 2025 01:08
@gotson
Copy link
Owner

gotson commented Mar 19, 2025

I'm wondering whether providing more options than just on/off would be better? I think on Kobo you can decide what to display where, or cycle through a few options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants