emacs-eaf / emacs-application-framework

EAF, an extensible framework that revolutionizes the graphical capabilities of Emacs
GNU General Public License v3.0
3.1k stars 235 forks source link

Global Scaling Configuration Setting #1129

Closed Trent-Fellbootman closed 11 months ago

Trent-Fellbootman commented 12 months ago

I'm always frustrated when I need to manually zoom in for every EAF app as I'm on a 2560x1440 monitor.

It would be great if EAF can provide a way to configure "system-level-scaling", which systematically handles the scaling of all EAF apps. Both Windows & Ubuntu have this feature.

Describe alternatives you've considered I've tried to set environment variables for Qt but it did not work as expected.

manateelazycat commented 12 months ago

https://github.com/emacs-eaf/emacs-application-framework/wiki/Customization#default-zoom

Trent-Fellbootman commented 12 months ago

https://github.com/emacs-eaf/emacs-application-framework/wiki/Customization#default-zoom

However, it only sets the default zoom for the browser. From what I saw in the source code, this option only sets the scaling of a Qt View class implemented in Python.

manateelazycat commented 12 months ago

First, you can adjust system' s scale, EAF will follow system scale Second, you can set eaf-webengine-default-zoom to 1.5 or 2 Third, you can change value in https://github.com/emacs-eaf/emacs-application-framework/blob/5f96a86221b162cb605d5bded95b7626d2adc343/eaf.el#L668-#L671 for a try