johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.93k stars 273 forks source link

Flatpak zoom gets reset to 100% every time the app starts #1135

Closed alexgirto closed 8 months ago

alexgirto commented 9 months ago

Every time the app is opened, zoom is 100%, no matter of previous changes

To Reproduce

  1. Open Foliate and open a book
  2. Change zoom to 170%
  3. Close Foliate or go to Library
  4. Open Foliate and open a book

Expected behavior Zoom should stay at whatever set in step 2 (170%)

Screenshots If applicable, add screenshots to help explain your problem.

Version:

Additional context This is running on my Steamdeck, in Desktop Mode - so, esentially and Arch Linux environment

johnfactotum commented 9 months ago

This is the expected behavior. See #993.

alexgirto commented 9 months ago

But this default to 100% is annoying when going back to the same book. I guess you can't please everyone :)

johnfactotum commented 9 months ago

It would possible to add support for per-book settings. Alternatively it can have a global default zoom setting.

Alternatively, there is a non-standard CSS property zoom that you can use in the user stylesheet:

body {
    zoom: 150%;
}
signdo commented 9 months ago

If you just want to make the text bigger because it's too small, maybe try adjusting the font size. The font size is set globally.

step1: Open a book step2: Click the vertical [...] in the upper right corner step3: Click Font & Layout Settings step4: Change Default Font Size

I think this setting should be added to the Library main menu of the app.

alexgirto commented 9 months ago

Please have a look at the attached. The default images are just that, whilst the user images are after applying

body { zoom: 170%; } I'd expect default_170 = user_100, but that doesn't happen.

Thank you, Alex

On Wednesday, November 15, 2023 at 06:04:17 p.m. PST, John Factotum ***@***.***> wrote:  

It would possible to add support for per-book settings. Alternatively it can have a global default zoom setting.

Alternatively, there is a non-standard CSS property zoom that you can use in the user stylesheet: body { zoom: 150%; } — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

alexgirto commented 9 months ago

It appears e-mail attachments may not have gone through, so trying again, here:

The default images are just that, whilst the user images are after applying

body { zoom: 170%; } I'd expect default_170 = user_100, but that doesn't happen. default_100 default_170 user_100 user_170

johnfactotum commented 9 months ago

Yes, that's expected. The CSS only affects the body of the page, not the layout.

johnfactotum commented 8 months ago

Closing in favor of #1158