-
Notifications
You must be signed in to change notification settings - Fork 320
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
1.5x interface scaling for small HiDPI displays #53
Comments
The same on Windows 10 - icons and text are small. It would be nice to have "icon size" option or maybe some high-constrast theme. |
Yes. I can confirm this for both Windows 10 and Ubuntu Gnome. We need an option to scale the UI on the Desktop version. |
in current version, for scaling equal 144 dpi or less is used 1x elements |
I (and many others too I think) need a more fine-scaled option. I "only" have a 13.3" 1080p screen. As it is, the icons are too small, but the 2x option is not viable either (960x540 resolution effectively). |
@trinhno unfortunately, we have no solution for fractional values in scaling yet |
@rend3r thanks, it'll be fixed in next release |
@maxkadushkin May I ask if there is any ETA for the new version? |
@filkeith do you use some flags to launch the app? do you have that bug in new version? |
@maxkadushkin nope. I've tried to run in compatibility mode and with different flags, but nothing help. Also someone from your team (xkorolx) on habr said, that he reproduced this bug and that you'll fix it next version. Problem only appears on fullHD when display size is less then 15', as I understand. I have dell latitude e5450 with 14' display. If you'll connect external monitor and move window to the monitor, title bar become normal size. |
@5haffl next release is planed for end of month, but it won't contain big fixes for that issue |
@filkeith what xkorolx said is true, your problem is fixed and will be released soon |
After last update 4.8.7.392 my problem was solved |
I'm using Solus Linux and everything scales fine except the cursor which is tiny. I'm using the latest snap. |
5.1.29.348 x64 not using scaling at all in Windows 10 configured with 200% UI scaling @ 3840x2160: With |
Yes, I agree, this sort of thing should be detected automatically. It's kind of a pain to be told that the solution is that I have to run the application with flags. I'm not opening up stuff from the command line yah know? |
BTW, I did end up fixing it by going into the .exe and under compatibility and HiDPI settings, setting it to ignore and override the systems attempt to use it in a HiDPI way. That does mean however that the application looks kind of blurry. Not great. Love the UI for OnlyOffice. I've been a big proponent of it. I just put up my own document server so that I could integrate it with my private NextCloud system. BUT the editor experience could use a fix on this! |
Same issue here on latest KDE Neon. There are issues #78 and #136 for this, however they've been open for a long time now. |
Same on windows, sad, that it doesn't sclae right (150% on a 1920x1080 13.3" screen) |
Got the same Issue ... very small icons on Windows 10 / Chrom Browser .. OnlyOffice is running in a Docker .. strange thing is .. that did not have got this behave from the beginning .. !? |
Yes - and this can not be solved as OnlyOffice is using JavaScript painting on a browser canvas and not native OS rendering. Also the desktop application works this way. When you create a canvas the pixels will be upscaled depening on the OS scaling. Example: You create a canvas with width and height of 100 pixels. If the OS scaling is 100% this means exactly 100x100 device pixels:
However - when the OS scaling is 200% the same canvas will get twice as large since all pixels will scaled by factor 2. Browsers work this way to make sure that the size of bitmap elements (like images or a canvas) stay the same relative to text elements which also get larger. However text elements use native rendering and the pixels of a font will always use device pixels. But at 200% scaling the canvase it will still have only 100x100 pixels. To mitigate this effect, the canvas can be scaled down again using CSS, so the internal canvass ize can be increased to 200x200 pixels match the device resolution:
The problems start, when you don't have even scaling factors like 125% or 150%. In this case, the canvas needs to be scaled down by a factor of 1.25 which is 0.8 or 1.5 which is 0.6666~. This will result in "blurry" pixels and can not be avoided at all:
This applies to every browser based application which uses a canvas to draw elements. The only solution to this would be using pure CSS based rendering and not a canvas to render content. But this would be a completely different approach which requires more or less a complete rewrite of the rendering code. |
Yes, of course. I just say that the most important is to be able to scale the display. If the icons are not always perfectly rendered at a given scale, it's a negligible problem compared to the inability to scale at a size adapted to the DPI. |
Any update here? :) |
If not for this annoying problem, the OnlyOffice could be recommended as the best free desktop office package at the moment. And now, for some users, it is completely unacceptable despite its excellent functionality. For example, for users of 13-inch Full HD laptops. As a result, the lack of fractional scaling becomes the main stop factor that does not allow you to recommend this software to everyone |
To get this work properly OnlyOffice would need to change from using a canvas to use SVG for output, so the rendering would then be done native and not as pixel graphics. But this is a major change and would take a lot of effort and time to be done. |
Do you speak for (represent) OnlyOffice @arnowelzel? If not maybe we can wait for someone who does to reply? |
No, I am also just an end user. But I know how OnlyOffice renders the UI and without changing from canvas to SVG outout they will never be able to support 1.5x scaling properly. |
You may be right. I'm not a Desktop App or C++ developer. However there's a classic workaround for the issue you mentioned, by factoring in the device pixel ratio (scaling factor) when you're creating the canvas. It looks to me like they're already doing this: https://github.com/ONLYOFFICE/desktop-apps/search?q=dpi_ratio And you can use ctrl + today already to zoom the content (not the menu, header etc). For me in "Document" (Word equivalent) it zooms to 120%,140% and up while in Spreadsheets (Excel equivalent) it's 125%, 150% and up. For normal text I don't think zooming makes it look any blurrier than 100%. Maybe it doesn't apply to normal font rendering though, but rather the SVG icons like the contributor said? In which case, is it really that bad? |
I don't talk about just the icons - the whole UI is rendered as a bitmap (yes, also with the desktop version) and then scaled afterwards. This scaling only works properly for 100% and 200% but not any values between - this can result into a "blurry" UI. See my explanation above about how canvas rendering works and why certain scaling factors cause problems. |
Example: You can see that the whole UI is slightly "blurry" - however the font selection "Arial" and "11" is OK since this is not part of the canvas but a element which is rendered by the browser itself at the native resolution. And this is the same UI at 200% scaling: The differences are not easy to spot when the preview is scaled down by Github - but if you open the bitmaps at their native size you should clearly see the point. |
Yep, that's bad. |
it's planned for 6.3 ver. |
A bit late but as a workaround for Windows 10 you can override application scaling with system scaling by right clicking the binary and clicking on "Compatibility" tab and then on "Change high DPI settings" button. This forces the application to use system scaling from settings but it looks blurry if is fractional. |
This isn't really a solution of any form as it just rasterized upscaling. |
that's right .. but it should be more a workaround .. but to be honest .. i got really troubles read the contents with Edge then - and i did revert this "workaround" later on |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think I'll close this issue because
So I think most issues from this issue is resolved, but all other specific situation it's better to create separate issues |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This was never properly fixed and is still happening on my system with a 4K monitor. No settings fix the enormous UI scaling. Please re-address this. |
You forgot to mention OS and window system and display server in case of Linux. |
@yllekz I think it's better to create a new issue with detailed description of your environment and problem. |
ONLYOFFICE does not honour system dpi (scaling 150% or 144 dpi, using 27'' monitor on 3840 × 2160 in my case) so UI elements look too small.
Windows 7 SP1 x64
The text was updated successfully, but these errors were encountered: