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

Improve zoomable user interface #1906

Closed
sfjohansson opened this issue Feb 12, 2020 · 16 comments
Closed

Improve zoomable user interface #1906

sfjohansson opened this issue Feb 12, 2020 · 16 comments
Labels

Comments

@sfjohansson
Copy link

Describe your feature request

The ability to zoom/adjust size of the document view area.

What problem does this feature solve? [optional]

Currently the app is working fine on a laptop screen, but unusable out of the box on my desktop with 4k screen. Resizing the window would leave the content just centered in the middle.
Being able to arbitrarily resize the view to adjust for ergonomics on any screen/viewing distance would greatly improve the usability across various screens.

Additional context [optional]

This could be implemented in multiple ways, a free pan/zoom canvas like a webpage would be most flexible. A more simple implementation could be to just have a multiplier for already defined text sizes.

Related to ergonomics... it would be good to be able to scroll beyond end of document/content, without manually adding empty spaces, in order to center the text one is currently writing.

@Jocs
Copy link
Member

Jocs commented Feb 16, 2020

The width of the editor can now be changed in the settings, will this solve your problem?

@sfjohansson
Copy link
Author

Awesome, thanks for looking at this so quickly.

I've tested the new build and adjusting the document area width doesn't really help as the problem lies in the text size varying between different screens.

Although I did find a solution through the newly exposed command palette, using the zoom option. A little clunky...but it can get the job done, hotkeys or perhaps slider, could would be more workable.

Here are some screenshot, the first shows the case where it is pretty unreadable on the 32" 4k screens while being fine on the 24" FullHD.

4k, 32" screen.
4k_32_mark_text

FullHD 24"
Full_HD_24

Latest build, wider view area:
New Mark Text

Latest Build Zoom through command palette
zoom_mark_Test

@fxha
Copy link
Contributor

fxha commented Feb 21, 2020

@sfjohansson Our latest release candidate(s) contain an option under Window -> Zoom or via command palette (Ctrl+Shift+P) to adjust the DPI but it's not persistent and I think we don't have any settings entry for it.

@fxha fxha added 🐤 blocked/need info Need more details about this issue or pull request 🔭 area/ui labels Feb 21, 2020
@sfjohansson
Copy link
Author

This is great...it's kind of fine not persisting if treated like zoom. In my case...I'm fine not zooming when it's the 1080p screens but need to zoom on 4k. Moving the window over to the other screen I need to zoom out again..so easy access feels important.

The usability would increase even more if we can have the zoom step amount adjustable in preferences along with hotkeys/keycombo+mouse scroll wheel.

@fxha
Copy link
Contributor

fxha commented Mar 17, 2020

Moving the window over to the other screen I need to zoom out again..so easy access feels important.

Dynamic DPI scaling is only supported on Windows (10) but is very bugged by Electron/Chromium.

The usability would increase even more if we can have the zoom step amount adjustable in preferences along with hotkeys/keycombo+mouse scroll wheel.

I think this would be a good idea and should be implemented on demand.

@fxha fxha added 🔭 area/editor 🦋 optimization Improve the existing behavior and removed 🐤 blocked/need info Need more details about this issue or pull request labels Mar 17, 2020
@fxha fxha changed the title Zoom In/Out Improve zoomable user interface Mar 17, 2020
@AlJohri
Copy link

AlJohri commented Apr 30, 2020

Is there anyway to use Cmd +- or Ctrl +- to control the zoom? Or holding control and scrolling the mouse wheel?

@samuel-lucas6
Copy link

This is my biggest gripe with the program. It's a hassle having to keep adjusting the zoom every time the program is launched. Remembering the zoom, keyboard shortcuts, and only zooming in on the editing pane would all be incredibly helpful.

@geckolinux
Copy link

As a workaround, you can add this to your .desktop launcher file in Linux:
--force-device-scale-factor=1.1 (or whatever scale factor you need)

@Bixilon
Copy link

Bixilon commented Oct 11, 2021

imho the scale factor is not the thing I'd expect. It scales the whole interface. I just want to make the text bigger (aka. increasing the font size). Also a shortcut (like CTRL + +/-) would be pretty useful.

Is there any progress on this? I need this for my everyday work.

@edo0
Copy link

edo0 commented Nov 27, 2021

As a workaround, you can add this to your .desktop launcher file in Linux: --force-device-scale-factor=1.1 (or whatever scale factor you need)

Thank you very much, that is a great workaround

@loyukfai
Copy link

Ditto

@lichever
Copy link

lichever commented Jan 5, 2022

Are key shortcuts for zoom changes available now?

@fxha
Copy link
Contributor

fxha commented Jan 6, 2022

User-defined shortcuts and mouse zoom support is available in our next release but no persistence.

@lichever
Copy link

lichever commented Jan 7, 2022

User-defined shortcuts and mouse zoom support is available in our next release but no persistence.

sounds great. BTW, when I zoom in in the latest version, the index in the table of contents will not work any more. But if I change it back to the normal scale, it will work again.

@fxha
Copy link
Contributor

fxha commented Jan 12, 2022

This feature will be available in our next release.

when I zoom in in the latest version, the index in the table of contents will not work any more.

What do you mean by index? That the editor jumps to the wrong position, then is a fixed bug in v0.16.3.

@fxha fxha closed this as completed Jan 12, 2022
@lichever
Copy link

I mean the heading in the table of contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants