end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.71k stars 255 forks source link

Add HIDPI variables and auto-scale feature for cheatsheet #336

Closed jsl9208 closed 3 months ago

jsl9208 commented 5 months ago

This PR adds some HIDPI variables and uses them to automatically scale down the cheatsheet, making it usable on scaled screens. Takes effect on Hyprland.

Solves https://github.com/end-4/dots-hyprland/issues/283.

Tested 2880x1800, 2x scaled: 图片

1920x1080, 2x: 图片

end-4 commented 5 months ago

this is really interesting... but why not have this for all windows? :thinking:

jsl9208 commented 5 months ago

this is really interesting... but why not have this for all windows? 🤔

Sorry I didn't understand the question. You mean other widges? Only the cheatsheet and overview window looks way much bigger after scaled IMO.

jsl9208 commented 5 months ago

Fixing the issue with the overview window is simple. All that needs to be done is to change all occurrences of the variables such as SCREEN_ in its code to SCREENREAL. I'd like to work on it later.

Mooling0602 commented 4 months ago

Fixing the issue with the overview window is simple. All that needs to be done is to change all occurrences of the variables such as SCREEN_ in its code to SCREENREAL. I'd like to work on it later.

Hey bro, you may forgot to import { SCREEN_REAL_HEIGHT } in the .config/ags/modules/cheatsheet/main.js, so the change will be not complete. But I can't fix this, so I need your help to improve this.