benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.73k stars 145 forks source link

Honor Windows text scaling #39

Closed Bert-Proesmans closed 4 years ago

Bert-Proesmans commented 4 years ago

Since we now have an Adonis Window it would be great if it followed the text scaling settings of Windows. This would help people with large resolutions and could help find style bugs. A cursory search yielded https://docs.microsoft.com/en-us/windows/win32/hidpi/declaring-managed-apps-dpi-aware, which also links to demo code.

Of course, if nobody wants to tackle the feature i'll get myself to it eventually.

msmshazan commented 4 years ago

Here's a Microsoft Sample for enabling per monitor DPI awareness https://github.com/Microsoft/WPF-Samples/tree/master/PerMonitorDPI

It seems like a simple app.manifest change

benruehl commented 4 years ago

As @msmshazan suggested it is only a setting in the app.manifest file required in order to support Windows' per monitor DPI awareness. The current version of the Adonis UI demo app shows how it can be done.

Closing this as it is not the responsibility of this library but of any implementing application instead.