Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

high-dpi gnome support based on settings #5165

Closed
braydonf opened this issue Jul 28, 2016 · 3 comments
Closed

high-dpi gnome support based on settings #5165

braydonf opened this issue Jul 28, 2016 · 3 comments
Assignees

Comments

@braydonf
Copy link

It looks like it's possible with v0.16 to use chromium args to set a scaling factor:

"chromium-args": "--force-device-scale-factor=1.5"

However, it would be useful to be able to have the scaling factor determined by the desktop gsettings.

Reference implementation that is doing something similar:
electron/electron#727

@ghostoy
Copy link
Member

ghostoy commented Jul 29, 2016

I'll look into this issue.

@ghostoy ghostoy self-assigned this Jul 29, 2016
@ghostoy
Copy link
Member

ghostoy commented Jul 29, 2016

@braydonf NW.js used Xtf.dpi for detecting the scaling factor under Linux. If you have HiDPI display, Xtf.dpi should be set to a number greater than 96 by the system. Then NW.js will use (Xtf.dpi / 96) as the scaling factor by default.

@braydonf
Copy link
Author

Actually, it looks like this is working in v0.16 and is changing based on system settings from the scaling setting in "Displays" -> "Scale for menu and title bars", as the Xtf.dpi changes from that setting.

xrdb -query | grep dpi

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

No branches or pull requests

2 participants