Skip to content

Improve UI scaling#199

Merged
crwood merged 22 commits into
masterfrom
193.scaling-improvements
Apr 25, 2019
Merged

Improve UI scaling#199
crwood merged 22 commits into
masterfrom
193.scaling-improvements

Conversation

@crwood

@crwood crwood commented Apr 25, 2019

Copy link
Copy Markdown
Member

In response to #193, this PR attempts to address a number of UI scaling-related issues on high-DPI displays. In particular, it:

  • Enables Qt5's AA_EnableHighDpiScaling/AA_UseHighDpiPixmaps attributes on Windows and macOS, thereby automatically upscaling window-sizes, font-sizes, and pixmap-sizes according to the underlying display's resolution/DPI.

  • Explicitly sets font point-sizes throughout the codebase (seemingly a requirement for AA_EnableHighDpiScaling to work properly) and automatically adjusts font point-sizes on macOS to match their equivalent Windows/Linux sizes

  • Uses SmoothTransformation when (re)scaling pixmaps, resulting in pixmaps that should appear less "blocky" or "pixelated" at higher resolutions.

As mentioned in this comment, however, some issues still remain on GNU/Linux, and so I've disabled AA_EnableHighDpiScaling/AA_UseHighDpiPixmaps there for now. See/follow Issue #198 for future progress relating to improving UI scaling on GNU/Linux.

@crwood crwood merged commit ff1b67d into master Apr 25, 2019
@crwood crwood deleted the 193.scaling-improvements branch April 25, 2019 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant