baskerville / plato

Document reader
Other
1.23k stars 102 forks source link

Allow overriding individual file type's refresh rates #323

Closed videah closed 10 months ago

videah commented 10 months ago

Adds a new setting to change the refresh rate based on a documents file type.

# Override the refresh rate for individual file types.
[reader.refresh-rate.file-types]
epub = { regular = 8, inverted = 2 }
cbz = { regular = 1, inverted = 1 }

The motivation for this is that I prefer partial refreshes for text heavy content like .epub's but want full refreshes for .cbz to prevent ghosting from comic/manga panels.

videah commented 10 months ago

Included the necessary tweaks, I've made it so the default has CBZ files refreshing every page since it seems like a sane default to me and exposes the functionality in Settings-sample.toml