lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
10.95k stars 331 forks source link

Big Sur: Preferences panel UI broken on low-dpi screen (1440p LCD monitor) #1062

Open Rabattkarte opened 3 years ago

Rabattkarte commented 3 years ago

Describe the bug

I have the following setup:

Both screens render the settings menu of AltTab differently. This only affects the Appearance settings.

I believe this has something to do with the way macOS renders UI elements at different resolutions and pixel densities. I'm no expert but I've read about similar issues in this blog post here.

Screenshots / video

Steps to reproduce the bug

  1. Open settings.
  2. Click on 'Aussehen (Appearance)'
  3. Move the settings window across screens
lwouis commented 3 years ago

I put the app in German, and tried to reproduce with:

But it was working fine. I think it's a layout bug that expresses itself only in rare cases, when exact dimensions and screen sizes happen. I'm afraid there is not much to be done here. Hopefully it will go away after some work on layout on these page, like #351 for example. It may also be macOS 11 specific

rasmusbe commented 3 years ago

I'm having the same problem on my external display and I'm using English, so it's not a German bug. image

image

image

lwouis commented 3 years ago

I'm guessing it's either pixel rounding, or not taking into account the size of the menubar somehow, on some monitors. I can't really address it if I can't reproduce it locally, fix it, then confirm it's fixed.

I wish someone would contribute a rewrite of the layout code. It's very manual and pixel-counting instead of using nice constraints. I found Apple legacy layout APIs stacking on top of each others difficult to handle when making AltTab. I wish an experience macOS dev would help me make it better.