Hi,
Just did a fresh install of Cinnamon Sylvia and some apps aren't scaling adequately on my 4K screen. The system scales the desktop correctly, as well as most apps (Nemo, LibreOffice, Archive Manager, Thunderbird, etc.) out of the box, but in some applications (VLC, SMplayer, etc), icons and text are tiny:
http://i67.tinypic.com/1zv4gpf.png
I've played with scaling in general settings, as well as with font scaling factor, but these don't appear to affect the ones that aren't scaling properly. What could it be?
This glitch was present both before and after installing system updates, and before and after updating the kernel.
What REALLY has me puzzled is that I re-installed Cinnamon Sonya, which is what I was using before with 0 issues of this type, and I'm having the same problem there too. There have been no changes in hardware to the system...
HELP, PLEASE! Mint community, I need you!
HiDpi - Some programs not scaling properly
-
- Level 1
- Posts: 11
- Joined: Wed Apr 05, 2017 6:27 pm
- Location: Spain
Re: HiDpi - Some programs not scaling properly
viewtopic.php?f=59&t=226322&p=1391148#p1391148
The problem apps are probably those still built with the very old GTK2 or QT apps that use the GTK2 theme.
There isn't really a solution other than using a GTK2 theme that has been deliberately scaled up. If you want to try one out then please take a look at one of the Cinnamox themes - e.g. https://cinnamon-spices.linuxmint.com/t ... shmir-Blue. They can be downloaded via the Themes module in Cinammon settings and include a regular GTK2 theme and a scaled up GTK2 theme along with a little script to toggle between the two.
Feedback on how effective it is would be welcome - It's hard for me to test properly on my little 1366 x 768 display...
There is an update to the themes uploaded earlier today and waiting for approval by the Spices theme. I have reworked the HIDPI version in that update but am concerned that I might have made it less effective.....
The problem apps are probably those still built with the very old GTK2 or QT apps that use the GTK2 theme.
There isn't really a solution other than using a GTK2 theme that has been deliberately scaled up. If you want to try one out then please take a look at one of the Cinnamox themes - e.g. https://cinnamon-spices.linuxmint.com/t ... shmir-Blue. They can be downloaded via the Themes module in Cinammon settings and include a regular GTK2 theme and a scaled up GTK2 theme along with a little script to toggle between the two.
Feedback on how effective it is would be welcome - It's hard for me to test properly on my little 1366 x 768 display...

There is an update to the themes uploaded earlier today and waiting for approval by the Spices theme. I have reworked the HIDPI version in that update but am concerned that I might have made it less effective.....
Cinnamox theme maker - https://github.com/smurphos/cinnamox-gtk-theme
Cinnamox themes - https://github.com/smurphos/cinnamox_themes
Cinnamox themes - https://github.com/smurphos/cinnamox_themes
-
- Level 1
- Posts: 11
- Joined: Wed Apr 05, 2017 6:27 pm
- Location: Spain
Re: HiDpi - Some programs not scaling properly
Thanks, will try it out immediately!
I sort of had a hunch that it had to do with GTK2 vs GTK3 apps...but what had, and still has me puzzled is why GTK2 apps scale perfectly in a live session...

I sort of had a hunch that it had to do with GTK2 vs GTK3 apps...but what had, and still has me puzzled is why GTK2 apps scale perfectly in a live session...
-
- Level 1
- Posts: 11
- Joined: Wed Apr 05, 2017 6:27 pm
- Location: Spain
Re: HiDpi - Some programs not scaling properly
As per the instructions to apply it to GTK2 themes:
I get the following output:smurphos wrote: ⤴Tue Apr 03, 2018 8:22 amIf you need HIDPI Support in GTK2 the theme includes a HIDPI version of the gtkrc theme file and a helper script to toggle between the regular and HIDPI version.
To run the script open a terminal window (Ctrl-Alt-T) and use the following command to make the script executable and launch it.
After the first run you can toggle between the two usingCode: Select all
chmod +x ~/.themes/Cinnamox-Kashmir-Blue/gtk-2.0/cinnamox_toggle_GTK2_HIDPI.sh && ~/.themes/Cinnamox-Kashmir-Blue/gtk-2.0/cinnamox_toggle_GTK2_HIDPI.sh
~/.themes/Cinnamox-Kashmir-Blue/gtk-2.0/cinnamox_toggle_GTK2_HIDPI.sh
Code: Select all
chmod +x ~/.themes/Cinnamox-Kashmir-Blue/gtk-2.0/cinnamox_toggle_GTK2_HIDPI.sh && ~/.themes/Cinnamox-Kashmir-Blue/gtk-2.0/cinnamox_toggle_GTK2_HIDPI.sh
Something is wrong. Cannot find /home/myusername/gtkrc
Press enter to exit the script.
Re: HiDpi - Some programs not scaling properly
Doh - first fail. - Edit - the new versions awaiting approval have had this bug fixed. Thank-you!
For now you'll need to do it the manual way - enter these commands in order in a terminal window.
For now you'll need to do it the manual way - enter these commands in order in a terminal window.
cd ~/.themes/Cinnamox-Kashmir-Blue/gtk-2.0
cp gtkrc gtkrc.nohidpi
cp -f gtkrc.hidpi gtkrc
gsettings set org.cinnamon.desktop.interface gtk-theme "Mint-Y"
gsettings set org.cinnamon.desktop.interface gtk-theme "Cinnamox-Kashmir-Blue"
Cinnamox theme maker - https://github.com/smurphos/cinnamox-gtk-theme
Cinnamox themes - https://github.com/smurphos/cinnamox_themes
Cinnamox themes - https://github.com/smurphos/cinnamox_themes
Re: HiDpi - Some programs not scaling properly
I am having similar problems on a full HD display (13" physical dimensions): how about Java and Wine programs? I'm not sure how to increase the character size in those.
R
R