edge-frfox icon indicating copy to clipboard operation
edge-frfox copied to clipboard

Misaligned window controls on nonstandard display

Open LSeelig opened this issue 2 years ago • 2 comments

Description On a secondary display (mine has different aspect ratio and scaling factor, the close, maximize, and minimize controls are unaligned).

Include screenshot / video recording if possible. image

Configuration

  • Firefox Version: 106.0.3 (64-bit)
  • I'm using the msix package (Windows Store)
  • OS: Windows 11 22h2

LSeelig avatar Nov 04 '22 21:11 LSeelig

image It seems like it renders properly when the window isn't in focus. The style of the maximize button looks more consistent with Windows 11 too.

LSeelig avatar Nov 04 '22 21:11 LSeelig

Another edit: I tested unplugging the primary display, and it still happened. My laptop screen is 3:2 2256x1504 175% scaling. My primary monitor (on which it works) is 16:9 1920x1080 100% scaling.

LSeelig avatar Nov 04 '22 21:11 LSeelig

When using the Mica tweak and the window is focused, the icons are drawn by windows but the button background when you hover over them is drawn by Firefox. The theme hides the window icons because the Mica appearance forces a set of window icons to appear. When the window is inactive the icons are drawn by Firefox, as Mica is disabled and the window background becomes a solid colour.

The misalignment seems to be caused by inconsistent button sizes when using fractional scaling settings. But there isn't any way to get the proper size of the icons. So I think the only way to fix this would be to add different sizes for different scaling settings. But I'll have to work on this another time, as Windows is not the operating system I use.

bmFtZQ avatar Dec 08 '22 03:12 bmFtZQ

Closing this due to Mica being no longer supported as this issue only occurred with Mica enabled.

bmFtZQ avatar Dec 20 '23 03:12 bmFtZQ