Skip to content
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

Make reader width configurable #565

Merged

Conversation

chancez
Copy link
Contributor

@chancez chancez commented Jan 20, 2024

Adds a new setting to configure the reader width.

One unrelated change is I changed the adornment for NumberSetting from startAdornment to endAdornment. Having the unit (% ) in the front looked weird. I checked this effected other settings using the component and IMO it looked better as an endAdornment in all cases, but glad to make this a configurable property if that's preferred.

Screenshot 2024-01-20 at 11 18 24 AM Screenshot 2024-01-20 at 11 17 14 AM Screenshot 2024-01-20 at 11 17 00 AM

@chancez chancez force-pushed the pr/chancez/configurable_reader_width branch from 71b57e8 to 37e3398 Compare January 20, 2024 19:50
@schroda
Copy link
Collaborator

schroda commented Jan 20, 2024

the setting does nothing in case "Fit page to window" is enabled or the "double page" or "vertical reader" is selected, so it would be best to hide it in these cases

@chancez
Copy link
Contributor Author

chancez commented Jan 20, 2024

the setting does nothing in case "Fit page to window" is enabled or the "double page" or "vertical reader" is selected, so it would be best to hide it in these cases

Is that the same as the conditions for fitPageToWindowEligible?

@schroda
Copy link
Collaborator

schroda commented Jan 20, 2024

yeah, something like that

@chancez chancez force-pushed the pr/chancez/configurable_reader_width branch from 37e3398 to a110a2e Compare January 20, 2024 21:26
@chancez
Copy link
Contributor Author

chancez commented Jan 20, 2024

@schroda Ok, did a few updates, let me know what you think.

@chancez chancez force-pushed the pr/chancez/configurable_reader_width branch 2 times, most recently from 8d7d4c3 to 2077671 Compare January 21, 2024 17:56
@chancez chancez force-pushed the pr/chancez/configurable_reader_width branch from 2077671 to ce594ae Compare January 21, 2024 20:20
Signed-off-by: Chance Zibolski <[email protected]>
@chancez chancez force-pushed the pr/chancez/configurable_reader_width branch from ce594ae to a729b88 Compare January 21, 2024 21:10
@chancez
Copy link
Contributor Author

chancez commented Jan 21, 2024

Fixed CI

@schroda schroda merged commit 5032a0a into Suwayomi:master Jan 21, 2024
1 check passed
@chancez chancez deleted the pr/chancez/configurable_reader_width branch January 21, 2024 22:04
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