Commit Graph

77 Commits

Author SHA1 Message Date
schroda
294a6f45a4 Extract "ReaderProgressBarSlot" from "StandardReaderProgressBar" 2024-12-22 13:53:52 +01:00
schroda
7e9684b7d3 Render progress bars only when visible 2024-12-22 13:53:51 +01:00
schroda
f141a5ae66 Render reader desktop nav bar content only when visible 2024-12-22 00:48:24 +01:00
schroda
948e2564fa Improve memoization of reader desktop nav bar 2024-12-22 00:48:23 +01:00
schroda
34ad331a71 Improve memoization of page rendering 2024-12-22 00:48:22 +01:00
schroda
58c402dd0e Memoize components 2024-12-22 00:48:21 +01:00
schroda
f5642af219 Use HOC for reader context usage 2024-12-22 00:48:18 +01:00
schroda
570b831604 Extract context types 2024-12-20 21:42:54 +01:00
schroda
91a1f75de6 Properly center loading placeholders of non reader images 2024-12-20 13:06:12 +01:00
schroda
90934b164a Properly pass "retryKeyPrefix" to "SpinnerImage" 2024-12-20 13:06:12 +01:00
schroda
528dcaafab Add scanlator to reader desktop nav bar 2024-12-20 13:06:10 +01:00
schroda
713326d1a2 Delete global reader settings on reset
When resetting a whole settings tab, the whole metadata can be deleted from the server
2024-12-20 13:06:05 +01:00
schroda
a3deea5b4b Properly center chapter transition page
After changes in e4253633c9 the transition page content wasn't properly centered anymore in the single/double reading mode depending on the applied reader settings (scale type, stretch, reader width)
2024-12-18 00:33:03 +01:00
schroda
60b541a7e5 Add option to reset image preload amount 2024-12-17 16:53:01 +01:00
schroda
ba3a8e7362 Add option to reset progress bar size 2024-12-17 16:53:01 +01:00
schroda
f72977c7ce Add option to reset image filters to default 2024-12-17 16:53:00 +01:00
schroda
8ca0c58ee0 Add "cycle reading direction" hotkey 2024-12-17 16:27:20 +01:00
schroda
ce15e4db70 Add "cycle reading mode" hotkey 2024-12-17 16:25:46 +01:00
schroda
392998f4ca Prevent going to next page on "offset spread pages" change
Due to handling an "offset spread page" change as if the "double page" mode got activated, the index of the secondary page was set, which resulted in opening the next page
2024-12-17 01:55:11 +01:00
schroda
e4253633c9 Properly center images in "single page mode"
While the reader width was set images weren't centered correctly in the images wrapper element
2024-12-17 01:27:42 +01:00
schroda
33b756219b Apply passed "margin top" to image placeholder 2024-12-17 00:46:17 +01:00
schroda
b4d295655f Remove outdated translation key 2024-12-16 22:58:52 +01:00
schroda
b9f512bb04 Remove "reader width" and "page gap" reset button in global settings 2024-12-16 22:23:40 +01:00
schroda
b9ea7abe65 Make reader setting slider inputs resettable to default 2024-12-16 22:09:01 +01:00
schroda
f51446995a Fix "continuous vertical pager" unintentional page gaps
Depending on the screen size and e.g. the set "reader width" pages might not have filled out the full img elements size due to "object-fit contain".
This was caused due to the image wrappers flex container "align-items center" which slightly reduced the images width to some ".xy" number (e.g. instead of wrappers width 258px, the images were something like 257.83px)
2024-12-16 22:09:00 +01:00
schroda
15a70760ca Fix double page with different dimensions
In case two pages were displayed with different dimensions, the bigger page might take up more than 50% of the screen.
In this case the bigger page got limited to 50% which caused in to unintentionally get reduced in size
2024-12-16 22:08:59 +01:00
schroda
942d8699c1 Add "Webtoon" reading mode 2024-12-16 22:08:58 +01:00
schroda
74f78e40d4 Remove custom profiles
Instead of "custom profiles" each "reading mode" acts as a profile and has its own settings
2024-12-16 15:50:28 +01:00
schroda
d844ad3f5d Use full height and width of viewport on iOS
- render appbar background color on ios status bar
- handle "home indicator" safe area inset
2024-12-16 14:49:35 +01:00
schroda
3db1de86a8 Inform about reader layout setting asterisk on touch device
The information for the asterisk was only shown as a tooltip, which is only optimal for non touch devices
2024-12-13 16:48:37 +01:00
schroda
feacfe70f1 Show active setting in reader desktop nav bar 2024-12-13 16:38:41 +01:00
schroda
e425b8f304 Properly disable previous/next page desktop overlay buttons in double page mode
For the double page mode the secondary page index gets used.
This was changed with 9a8655db2f, however, this occurrence was overlooked
2024-12-13 02:29:27 +01:00
schroda
aaf7fb7b30 Prevent hiding overlay on page change through overlay 2024-12-13 02:15:18 +01:00
schroda
e944831862 Fix reader desktop page selection in double page mode
For the double page mode the secondary page index gets used.
This was changed with 9a8655db2f, however, this occurrence was overlooked
2024-12-13 02:07:02 +01:00
schroda
1e57533337 Highlight active settings in reader settings 2024-12-13 02:01:58 +01:00
schroda
d00c930598 Fix "is read" detection in single/double page mode
In case the last page of a manga was immediately visible or the became visible after the "image spread state" change, the chapter never got marked as read
2024-12-12 13:21:48 +01:00
schroda
9a8655db2f Always use "secondary page index" as "current page index" when available
There was an issue where one had to click twice at the end of a chapter in the "double page mode" to get to the chapter transition page.
This was caused due to setting the "primary page index" as the "current page index" and thus, when opening the next page, it got changed to the "secondary page index". However, this page was already visible and therefore, there was no visual change.
2024-12-12 13:21:29 +01:00
schroda
858c3b4bcf Display active profile for default value
In case the profile was not set and the default value got used, there was no indication of the active profile.
2024-12-12 02:09:19 +01:00
schroda
6dd2c8e2ff Show chapter transition warning
- on scanlator change
- on skipped chapters
2024-12-11 22:38:04 +01:00
schroda
8ca0af8d02 Hide overlay on page/scroll change 2024-12-11 22:36:02 +01:00
schroda
8b67c2d6a9 Add "cycle profiles" hotkey 2024-12-11 20:53:48 +01:00
schroda
cff0ed5ec3 Extract app routes into constant 2024-12-11 20:25:49 +01:00
schroda
8c4ff516c0 Rename "theme.tsx" to "ThemeCreator.ts" 2024-12-11 18:02:03 +01:00
schroda
b3e3d94bda Move "theme.tsx" to proper module 2024-12-11 13:57:24 +01:00
schroda
dac19386ed Remove outdated translation keys
Implementation changed and they're no longer needed
2024-12-09 22:41:48 +01:00
schroda
f98b34de15 Add "disabled" tap zone layout 2024-12-09 19:09:01 +01:00
schroda
230e23484a Properly disable hotkey scopes for open reader settings 2024-12-09 17:14:59 +01:00
schroda
2cd5a970cc Add tooltips to reader desktop quick settings 2024-12-09 16:24:32 +01:00
schroda
1387a016c7 Fix page changes via click/hotkey in horizontal pager
Due to the way the pages got scrolled into view, the current page was not changed to the new page.
This then prevented the previous/next page to get opened via click/hotkey actions
2024-12-09 15:07:52 +01:00
schroda
f654d95804 Fix click/scroll/hotkey open previous/next chapter
Properly handle all combinations of theme and reader reading directions
2024-12-09 15:06:11 +01:00