Beeftext icon indicating copy to clipboard operation
Beeftext copied to clipboard

Scaling issues on high DPI devices with 200% scaling

Open mrowwy opened this issue 5 years ago • 9 comments

Expected behavior

Window fits reasonably on display.

Actual behavior

Buttons & text are huge. Preference window does not even fit on the display screen. Cannot accept changes on preference window.

I've tried overriding in the compatibility menu for high dpi displays, but the typical settings of using 'system' doesn't actually have an effect.

Operating system

Windows 10 1903 Display res 3840x2160 Display scaling 200%

mrowwy avatar Oct 17 '19 08:10 mrowwy

Hi.

I will try to have a look at that. Unfortunately, I do not have a high resolution DPI available, which could make the investigate a bit difficult. Could you send me a screen shot of Beeftext with another 'DPI aware application next to it?

Regarding the Preferences dialog,I was planning to split it in tabs, so that it takes less vertical space.

I will try to post test build and may require more help from you.

xmichelo avatar Oct 21 '19 05:10 xmichelo

Hey sorry, just seeing this.

It seems like this issue gets resolved after a reboot, so I'm not sure exactly why, but I changed it to use the system DPI, but wasn't actually reflected until the system restarted. Now after restarting it seems to reflect what I'd expect to see.

mrowwy avatar Oct 30 '19 18:10 mrowwy

Glad to hear. I will have a few new options for hi-dpi screens implemented in Beeftext 6.0. Unfortunately, I do not have the required hardware to test. so If you are willing to help, your feedback will be appreciated.

xmichelo avatar Nov 05 '19 14:11 xmichelo

Can do, reach out when needed.

mrowwy avatar Nov 05 '19 15:11 mrowwy

Shouldn't this issue be closed then? anyway I have a separate issue but related, so I don't know if i should open a new issue or what (really should close all the sorted issues)

The combo picker dialog doesn't show up. It gets created when the shortcut key win+shift+enter is pressed, but it doesn't display where I am typing. For example here ... see screenshot image

image

what actually happens is the window is created but not shown image

or maybe not in the right position as seen in the first screenshot. So how to resolve this issue? I am using win10 1903 (build18362.592)

VijayS1 avatar Jan 31 '20 05:01 VijayS1

Unchecking "Use Custom Theme" in Preferences > Appearance seem to solve any element overlapping/collision issue in Beeftext windows.

Drawback: This setting will return Beeftext to the most bare-bone look and feel.


Setting the app in "Application" scaling mode (excluding the app from Windows' smart High DPI-unaware fix logic) seem to fix any window/poup placement issues. The option is present when right-clicking Beeftext.exe, select Properties > Compatibility > Change High DPI Settings, and check Override High DPI scaling behavior.

I think basically Windows provides High DPI-unaware apps some fake screen resolution to reverse the calculation involving scaling factor, so coordinate-based element placement gets all wrong. Just a guess.

Drawback: Elements (window, text, etc.) may look unscaled (as if the system scaling factor is 100%). Doesn't seem to be the case with Beeftext but I've seen other apps act this way. There are also "System" and "System (Enhanced)" options to experiment with. I think at least one will work for you.


Note to developer: Many Qt-based apps added high DPI awareness recently (e.g. Calibre, MKVToolNix), maybe there's a master opt-in somewhere in Qt so you just "let Qt deal with it", and you don't necessarily need to test the app specifically on a high-DPI monitor.

VaslD avatar Apr 24 '20 08:04 VaslD

@VaslD Thanks for the update. I really need to get my hands on a HiDPI screen to implement this properly.

xmichelo avatar Apr 29 '20 04:04 xmichelo

I got a new HiDPI laptop, and also noticed issues with BeefText. Here's a screenshot for reference. As VasID said, disabling custom theme fixes some overlapping issues.

3df4c1ac-3507-4f63-9350-ae7c26878531

viktorix avatar Jul 01 '20 21:07 viktorix

Hi. Thank for the information. I really need to get my hands on a hiDPI screen soon. It's difficult to debug that kind of problem without it.

xmichelo avatar Jul 07 '20 04:07 xmichelo