aidanholm / luakit

A fork of a fast, small, webkit based browser framework extensible by Lua that uses GTK 3 and WebKit 2.
https://aidanholm.github.io/luakit/
GNU General Public License v3.0
38 stars 8 forks source link

hidpi buttons #410

Open myf opened 7 years ago

myf commented 7 years ago

so the way i am dealing with hidpi screen is to set zoom_level=2.0 in globals.lua, and view.zoom_level = zoom_level or 2.0 in webview.lua. It has been working well for me, only one slight annoyance: buttons. buttons seems to be zoomed properly even without the config zoom_level set up (perhaps it read the dpi from the system?) and when I zoom everything 2x buttons would look like 4x. here are two comparison screenshots, one taken from zoom_level = 1.0 and another from zoom_level = 2.0. 2017-08-09-152324_2560x1700_scrot vs. 2017-08-09-152358_2560x1700_scrot

i wonder what the issue would be. could it be my own config or something has to do with how webkit treats buttons?

aidanholm commented 7 years ago

Right, that's a bit annoying. Almost certainly a WebKitGTK issue. I'm guessing it's the same with other sites, not just reddit?

BTW I'm working on the main luakit/luakit repository now, and I'll eventually stop pushing to this one; it's behind already, I think.

myf commented 7 years ago

ah good to know! I'll migrate this over

On Aug 9, 2017 22:59, "Aidan Holm" notifications@github.com wrote:

Right, that's a bit annoying. Almost certainly a WebKitGTK issue. I'm guessing it's the same with other sites, not just reddit?

BTW I'm working on the main luakit/luakit repository now, and I'll eventually stop pushing to this one; it's behind already, I think.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aidanholm/luakit/issues/410#issuecomment-321437356, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqYaAMQ2Unp9OlkpzcurlcgAvS52Q--ks5sWnIggaJpZM4Oyiq5 .