window: add xsettings support on X11 systems

This allows reading xsettings which contain information about
both the active theme as well as the DPI.

refs: #947
This commit is contained in:
Wez Furlong committed 2021-07-18 12:54:52 -07:00
1 parent 1f5b900f3d
commit a697b30223
8 files changed
+531 -18

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ The default value is system specific:
|Windows |Probed from the display |Probed from the display |
|X11 |96.0 |96.0 |
|X11 (*version 20210314-114017-04b7cedd and later*)|Probed from `Xft.dpi`, fallback to 96.0 |Probed from `Xft.dpi`, fallback to 96.0 |
|X11 (*Since: nightly builds only*)|Reads `Xft/DPI` via xsettings, fallback to `Xft.dpi`, then fallback to 96.0 | same as standard density |
|Wayland |96.0 |192.0 |
In macOS and Wayland environments there isn't strictly a system DPI value that