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] Laidout is way too small on my screen, doesn't seem to respect GDK_SCALE or QT_SCREEN_SCALE_FACTORS #16

Open
ctrlcctrlv opened this issue Jul 4, 2019 · 5 comments

Comments

@ctrlcctrlv
Copy link

ctrlcctrlv commented Jul 4, 2019

No description provided.

@tomlechner
Copy link
Contributor

tomlechner commented Jul 5, 2019

I have something in the works for live update of the UI scale, but it's not ready yet. Part of a larger overhaul of window theming. Not sure when that will be ready.

As a workaround, there's two main parts to the scaling.
First is font size. This used to be adjustable, but I seem to have broken it at some point. Normally, you would specify theme fontsize in ~/.config/laidout/(version)/laidoutrc.

Then there's icons. You will need to rebuild the icons in a larger size.
First go to laidout/src/icons, then run:

./makeimages.py 256 (or whatever is a good pixel size for icons for your monitor)
./makeimages.py -icons-tiling.svg 1024 (this number should be about 4 times the number above)
cd ../../laxkit/lax/icons
./makeimages.py 256
(now copy all the laxkit pngs into the laidout directory)

These new icons can either be built into the install or use them as a custom icon_dir set in the laidoutrc.

Responding to GDK_SCALE or QT_SCREEN_SCALE_FACTOR (or maybe only QT_SCALE_FACTOR) shouldn't be too hard, at least for fonts. I'll add that to my theme todo list.

@ctrlcctrlv
Copy link
Author

ctrlcctrlv commented Jul 5, 2019

Thanks. This is unrelated, but is it possible to stroke a path A with another path B, where B does not turn as it transverses path A...like this:

https://i.ytimg.com/vi/Sj64ocyCmRI/maxresdefault.jpg

Some call these "vector brushes"

@tomlechner
Copy link
Contributor

tomlechner commented Jul 5, 2019

Alas, no. The closest is adjusting the stroke rotation with the weight nodes, but the "brush" is still just a straight line.

@ctrlcctrlv
Copy link
Author

ctrlcctrlv commented Jul 5, 2019

Got it, I figured that. Thanks a lot for the help. Here's hoping for vector brushes someday :-)

@tomlechner
Copy link
Contributor

tomlechner commented Mar 18, 2021

So, took an embarrassing amount of time, but finally made a little progress here.

You can now run Laidout with laidout --uiscale 2, or put a line uiscale 2 in laidoutrc and the default scale of text and various controls in on-canvas interfaces is boosted by the specified number. This currently forces icon scale, which makes them a bit fuzzy, so one would still need to rescale icon files manually for crisper icons at the moment.

I'm working on being able to rescale icon files and set uiscale from a settings window while running Laidout instead of messing with laidoutrc. Hopefully I can make that work in less than 2 years this time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants