coolwanglu / neovim-e

Electron UI for Neovim
MIT License
271 stars 29 forks source link

HiDPI on Linux. #46

Open trusktr opened 9 years ago

trusktr commented 9 years ago

On Linux, in Gnome 3 at 2x scale, Neovim-e is still at 1x scale, and it's tiny. I wonder what's the best way to double it's size on Linux.

trusktr commented 9 years ago

Here's what it looks like (notice the tiny content of the window with white borders):

screenshot from 2015-08-27 23-47-01

I wonder if we can make it twice as big?

trusktr commented 9 years ago

@coolwanglu See: https://github.com/atom/electron/issues/2625#issuecomment-136241893

coolwanglu commented 9 years ago

@trusktr Good to know. Yet there may be a problem to access configuration in nvim.html. A good solution would be pass webframe out of the renderer.

trusktr commented 9 years ago

@coolwanglu I gave it a try, and it works in the main.coffee file. What it does is change the window.devicePixelRatio. I don't think using webFrame like that is the solution. For example, that doesn't change the zoom level of the file menu at the top (outside of the browser area). Maybe there should be a way to scale the whole app as a whole?