Commit Graph

7 Commits

Author SHA1 Message Date
Jays2Kings
6d6766a86a
Double pages (#699)
* Start of dual pages

* Fixes to dual pages + added button to shift

Next to add a button to get out of this nightmare

* Adding preference to truly support on and off

* Set double pages correctly for L2R reading mode

* Hide shift double page in single page mode

also fix shift into or out of double pages not going to right page

* Shift page back on loading a new chapter

* Fix back shift when reaching near end of chapter with shifted pages

* Fix chapters not being marked as read when last pages are doubled

* more fixes

* change menu icon and verbage

* Fixed going to previous/next chapter when turning on/off double shift sometimes

* Fix shift icon for double page in R2L

* Adding double page as option in reader sheet

* Adding saving/share/setting cover for second page

* Add back page indicator

* RTL language support for current page in double mode

* Changing to double page always moves the current page to first slot

Also fix bad snap back from single to double or vice versa

* Reset shift icon when going to a new chapter

* Add Double pages to reader settings

* Add padding to current/total pages text

since it gets pretty long with double digits in double pages mode

* Option for automatic single/double layout based on orientation

With option to change mid read

* More fixes

* Lotta reworking to make this work

Lotta reworking to make this work

Seriously a lot of reworking to make this work

* Cleanup + Some documentation

Because I won't "know my own code"

I genuinely do not know what I just coded

* Swapped around icons for double page in chapter sheet bar

Since it was confusing even me

* Fix shifting not updating the ui, nor shifting back to the right page

* Fix changing chapters

* Fixed Prev Chapter transition page jumping back 1

* Fixed progress spinner for single page loading

* Fix the case of a second page shifting for full width while double shift is on

It would unshift the pages in this case, requiring another shift back

If this sounds confusing or complex, it's because it is

Also clean up

* Update Initial dual page bg to match reader bg theme

* More cleanup

* More cleanup + docs + refactoring

* String update

* more cleanup

* Update toolbar ripple based if the menu item is visible

* Fix more issues with shifting + next chapter's first page being a double

* Cleanup ChapterTransision Checks

* Always run shifting logic

* Even more optimizing

which hopefully didnt break something (prolly did)

(spoilers it did I had to undo this local commit)
(more spoilers it still will break again)

* Fix Retry in double mode

* Set gifs as fullpages

* Fix going from automatic to single/double page layout

* More cleanup, more comments

* Fix changing page layout when on a transition page for a manga with a single chapter

The edge cases you can find....man

* Restore shifted pages on activity recrreation

* Adding a "beta" tag to page layout

IMO it's absolutely solid and release candidate ready, but you can get away with so much by calling something a "beta" or an "alpha"
2021-04-05 14:55:22 -04:00
Jays2Kings
57abbd6eda Reader Spinner Binding + rename
to MaterialSpinnerView (sorry arkon)
2021-03-29 02:14:47 -04:00
Jays2Kings
58defbb5d2 Option to change cutout behavior in portrait
Back on my BS, but this was an uncommited change for months that I was too lazy to stash for release
2021-03-27 14:34:37 -04:00
Jays2Kings
999247d7dd Added option to change navigation type for reader
Taken from upstream with some tweaks:
*Removed always show at start option
*"Left" and "Right" in reader overlay now say "Next" or "Previous" in LRNav
*Changing Inversion also shows navigation overlay
*Show new user the nav overlay the first time for both paged and webview (since j2k has auto webtoon)

Also unrelated, changed "page transitions" to "animate page transitions"

Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
2021-03-24 20:13:14 -04:00
Jays2Kings
6a5770b913 Rename custom reader spinner view 2021-03-24 17:29:52 -04:00
Jays2Kings
a2c7705d07 Refactoring Tabbed Sheets 2021-03-24 17:29:21 -04:00
Jays2Kings
fe2543b9d5 Reworking Reader Activity Menus
Reader settings sheet now in a tabbed layout
Reader settings sheet also contains filter options
Reader menu now holds the long tap options (Share, Save, Set as cover)
Reader menu also has option to go to manga details (was on toolbar tap)
Also has the option to jump straight to reader settings
Removing long tap gesture on Reader since no longer needed
2021-03-24 17:10:31 -04:00