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

gtk2 pre-scale #5

Open
actionless opened this issue Oct 5, 2017 · 5 comments
Open

gtk2 pre-scale #5

actionless opened this issue Oct 5, 2017 · 5 comments

Comments

@actionless
Copy link
Member

From @kindlychung on April 5, 2017 11:20

According to Arch linux wiki:

Scaling of UI elements is not supported by the toolkit itself, however it's possible to generate a theme with elements pre-scaled for HiDPI display using oomox-gitAUR.

How does one pre-scale elements in oomox?

The HiDPI option doesn't have much of an effect: http://i.imgur.com/Hd2hNDT.png

Copied from original issue: themix-project/themix-gui#82

@actionless
Copy link
Member Author

you can find out widget class of that panel in inkscape and add a rule for it to this file:
https://github.com/actionless/oomox/blob/master/src/gtk-2.0/gtkrc.hidpi

this tool should be helpful:
https://chipx86.github.io/gtkparasite/

@actionless
Copy link
Member Author

also icon sizes could be overriden by you settings manager, here is an example of how it's done in xsettingsd:

Gtk/IconSizes "panel-menu=40,40:panel=40,40:gtk-menu=24,24:gtk-large-toolbar=40,40:gtk-small-toolbar=40,40:gtk-button=24,24"

@actionless
Copy link
Member Author

if there are any volunteers to implement that pre-scaling here is an example:
nana-4/materia-theme#142

but in this case it will also take some effort to re-implement border radius option for buttons/inputs

@smurphos
Copy link

Have you ever considered doing away with a separate gtkrc.hidpi file and using multiple values based on %SPACING% calculated in change_color.sh to size elements in gtkrc?

@actionless
Copy link
Member Author

yes but without scss that seems like quite a PITA, and so looking on the decreasing number of gtk2 apps on my desktop i've decided to give up on that

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

No branches or pull requests

2 participants