Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Configurable zoom level #252

Closed
arthurlutz opened this issue Mar 8, 2022 · 5 comments · Fixed by #258
Closed

Configurable zoom level #252

arthurlutz opened this issue Mar 8, 2022 · 5 comments · Fixed by #258
Assignees
Labels
enhancement New feature or request

Comments

@arthurlutz
Copy link

Is your feature request related to a problem? Please describe.
On a new laptop I have a quite high resolution (2560x1600) using an LTS ubuntu most application (especially Electron) provide a way to zoom to avoid having an interface with very small fonts and images. This can also be done with DPI settings but I want to avoid going down that road (for now) .

Describe the solution you'd like
Most electron-based apps enable a "Ctrl-+" or "Ctrl-minus" to zoom in/out all the graphical elements. The good one keep this setting from a session to the next. Some can also do this setting in the configuration as 100% / 125% / 150% / 200%.

Describe alternatives you've considered
An alternative is to change the resolution using xrandr or other tools. Also I could tweak the size of thumbnails etc but I would still have small buttons and small text.

@arthurlutz arthurlutz added the enhancement New feature or request label Mar 8, 2022
@jeffvli jeffvli added this to the Release (0.14.0) milestone Mar 9, 2022
@jeffvli jeffvli self-assigned this Mar 10, 2022
@jeffvli
Copy link
Owner

jeffvli commented Mar 10, 2022

I've added zoom hotkeys per your suggestion, using:

  • Ctrl + Shift + =
  • Ctrl + Shift + -

It increments/decrements in 5% intervals so it can be more fine-tuned than presets.

Repository owner moved this from Todo to Done in Sonixd (Roadmap and Releases) Mar 10, 2022
@arthurlutz
Copy link
Author

Works great, thanks for such a quick fix !

@Aiku1
Copy link

Aiku1 commented Apr 9, 2022

@jeffvli Maybe it's only on my machine (Windows 10, latest version of Sonixd) but zooming makes some menus blurry:

settings menu

This happens especially after 125%.

Also, I'm sure there are some improvements to be made on the speed side of it, I have a pretty decent computer and it still takes seconds to redraw everything.

@jeffvli
Copy link
Owner

jeffvli commented Apr 10, 2022

@Aiku1 The zoom functionality is using the native Electron webFrame.setZoomFactor API to set the zoom levels. I'm not sure there's much I can do regarding the blurriness besides possibly increasing the default font sizes so you don't have to zoom as much.

In terms of performance, where are you seeing issues? My zooms are usually almost instantaneous, besides the dashboard page. The dashboard has a couple issues due to not using any virtual lists, so ~60 images are usually loaded at once.

@Aiku1
Copy link

Aiku1 commented Apr 10, 2022

@jeffvli Are there no other options for zoom? The rest of the UI is still crisp, but those menus look pretty bad on a hi-res monitor.

You're definitely right, it's way worse on the dashboard, in any other pages it's pretty much instantaneous, except for the reloading of the lists which I'm guessing depend on network and on the server. I'm guessing there's nothing you can really do about that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

3 participants