jacquesh / foo_openlyrics

An open-source lyric display panel for foobar2000
MIT License
403 stars 24 forks source link

Preferences not adjusting to window size #259

Closed regorxxx closed 1 year ago

regorxxx commented 1 year ago

From here: https://hydrogenaud.io/index.php/topic,120812.msg1026183.html

Steps to reproduce

  1. Enable dark mode
  2. Open preferences window

image image

Expected behavior

Content adjusted to window size (width).

Versions

jacquesh commented 1 year ago

This is a duplicate of #228. It isn't specific to Columns UI or Dark Mode, this is an issue with UI Scaling on high-dpi monitors.

I looked into fixing it initially for v1.5 but I struggled to come up with a good solution that worked properly without requiring me to manually resize everything. In theory (as far as I know, I've not done it elsewhere before) I should be able to mark the window with the correct DPI-awareness setting and let Windows automatically scale everything. Sadly this doesn't appear to work in the way that I expect =/ If anybody has any bright ideas on how to do this properly without writing code to manually scale everything, that'd be amazing.

Regardless I should put some more time into this anyway. At the very least to write some small experiments to see how the Windows auto-scaling works outside of fb2k, as a baseline for what I should expect.