Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPI #288

Closed
bosim opened this issue Aug 22, 2018 · 8 comments
Closed

HiDPI #288

bosim opened this issue Aug 22, 2018 · 8 comments
Labels
enhancement The report requests an enhancement beyond the intended behaviour.

Comments

@bosim
Copy link

bosim commented Aug 22, 2018

Could be great if somebody could provide a theme that works for dpi = 144 (~ 1.5 scaling). In theory IceWM should be able to show scaled taskbar / titlebar right?

@bbidulock bbidulock added the enhancement The report requests an enhancement beyond the intended behaviour. label Aug 24, 2018
@marek-lach
Copy link

I would need 2x scaling for my 2k display.

@gijsbers
Copy link
Collaborator

gijsbers commented Jun 2, 2020

Dark-Ice is larger than most. Edit the default.theme file.
Adjust MenuIconSize, SmallIconSize, LargeIconSize, HugeIconSize.
Also adjust the font sizes.
Share your best efforts here for discussion and for others to improve upon.

@bosim
Copy link
Author

bosim commented Oct 2, 2020

@gijsbers The icons in the window title bar are still very small, any idea how to cope with that?

@gijsbers
Copy link
Collaborator

gijsbers commented Oct 2, 2020

Yes. Consider Fedora and AntiX. They provide IceWM themes for HiDPI displays.
Copy a large theme you like to your ~/.icewm/themes/ directory and cd into the theme directory.
Identify the icons which are on the title bar. Say close*.xpm, mini*.xpm and maxi*.xpm.
Make sure you have convert from ImageMagick. Then do something like this:

identify close*.xpm mini*.xpm maxi*.xpm
for f in close*.xpm mini*.xpm maxi*.xpm; do convert $f -resize 200% $f; done
identify close*.xpm mini*.xpm maxi*.xpm

Then adjust TitleBarHeight= in the default.theme file to the appropriate size.

@cheapy
Copy link

cheapy commented Nov 18, 2020

I think the height in pixels of the menu button controls the height of the taskbar. In my new antiX-Magic theme, I had to make each size of the theme separate so that the taskbar would resize properly. In the theme, which I originally copied from the Materia theme, I reorganized the lines so that all of the heights and font sizes that needed to change for the different sizes were at the top to make it easy to clone it to a new size, like my antiX-Magic-Huge4K theme. This means that my sub-themes will be for differences on that size of the theme, using the same building blocks. The thread with the links to the files at the end is here: https://www.antixforum.com/forums/topic/new-theme-for-antix-icewm/page/3/ I created Small, Medium, Large, Huge4K, and Thin (for super efficinent space usage) themes, basically all the same except for sizing. Here is a pic of the Huge4K one in 3840x2160 resolution...
screenshot-4

@dagelf
Copy link

dagelf commented Oct 6, 2022

Running icewm from Ubuntu 22 gdm the DPI is scaled for 4k, even on small screens. I can't figure out how to get it back, just lost an hour of my life to this. If I start with startx, all is well.

@gijsbers
Copy link
Collaborator

gijsbers commented Oct 6, 2022

Looks like a GDM problem then. IceWM doesn't know much about DPI. Let alone how to scale it.

@dagelf
Copy link

dagelf commented Oct 6, 2022

Solved with this ~/.Xresources file:

Xft.dpi: 96

This page came in handy: https://wiki.archlinux.org/title/HiDPI#Xorg

Not sure if it could've been this that did the job though, I did both before last login:

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Xft/DPI': <98304>}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The report requests an enhancement beyond the intended behaviour.
Projects
None yet
Development

No branches or pull requests

6 participants