Skip to content

Commit

Permalink
Slightly improved DPI scaling until I can work on the module,
Browse files Browse the repository at this point in the history
  • Loading branch information
LycanDarko666 committed Jul 13, 2023
1 parent cbc6136 commit 043d5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rabbithole/ui/default/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function UserInterface.new(
if resolution > 1920 * 1080 then
dpi = 144 -- or whatever value you want for high DPI screens
elseif resolution > 1366 * 768 then
dpi = 110 -- or whatever value you want for medium DPI screens (1080p laptops)
dpi = 141 -- or whatever value you want for medium DPI screens (1080p laptops)
else
dpi = 96 --or whatever dpi value you want for low DPI screens
dpi = 110 --or whatever dpi value you want for low DPI screens
end

beautiful.xresources.set_dpi(dpi, s)
Expand Down

0 comments on commit 043d5c6

Please sign in to comment.