You are not logged in.

#1 2015-10-24 19:51:14

gentix
Member
Registered: 2015-10-24
Posts: 6

[solved] Why do GTK applications look like this?

Everything in my GTK applications looks magnified. I thought I could fix it by messing with GTK settings but I can only seem to change the fontsize (which is actually fine). Does anyone know why GTK applications might look like this?

2015-10-24-1221001920x1080scrot.png

Last edited by gentix (2015-11-07 19:52:37)

Offline

#2 2015-10-24 23:34:59

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [solved] Why do GTK applications look like this?

looks like you've just zoomed in on your browser window. everything that gtk renders seems fine to me.

Offline

#3 2015-10-24 23:39:24

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [solved] Why do GTK applications look like this?

Which desktop environment or window manager is that? (i3?)

Looks like the scaling factor is raised -- you can try:

gsettings set org.gnome.desktop.interface scaling-factor 1

Offline

#4 2015-10-25 00:05:43

Kyngo
Member
From: The Moon
Registered: 2015-10-24
Posts: 3
Website

Re: [solved] Why do GTK applications look like this?

Woah, looks like everything just got bigger. Try to reduce the scaling factor as mentioned above, or search at the environment settings app if there's an option to reduce it without commands.


Simple is better. That's why I chose Arch Linux.

Offline

#5 2015-10-25 14:55:52

gentix
Member
Registered: 2015-10-24
Posts: 6

Re: [solved] Why do GTK applications look like this?

ooo wrote:

looks like you've just zoomed in on your browser window. everything that gtk renders seems fine to me.

That doesn't seem to be the problem. Zooming in and out doesn't effect the size of the browser bar. (Also, I have the same problem with other GTK apps like VLC)


Head_on_a_Stick wrote:

Which desktop environment or window manager is that? (i3?)

Looks like the scaling factor is raised -- you can try:

gsettings set org.gnome.desktop.interface scaling-factor 1

Oops should have mentioned -- this is Xmonad.

I was optimistic about the scaling factor, but it doesn't seem to have changed anything even after restarting Xorg.

Offline

#6 2015-10-25 15:11:39

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [solved] Why do GTK applications look like this?

I may be wrong but I think that the 'org.gnome.desktop.interface scaling-factor' setting will have an effect only if gnome-settings-daemon is running.

Is there anything in ~/.gtkrc-2.0?

Offline

#7 2015-11-07 04:26:30

gentix
Member
Registered: 2015-10-24
Posts: 6

Re: [solved] Why do GTK applications look like this?

Chazza wrote:

I may be wrong but I think that the 'org.gnome.desktop.interface scaling-factor' setting will have an effect only if gnome-settings-daemon is running.

I suspect that's right. It didn't seem to do anything for me.

Is there anything in ~/.gtkrc-2.0?

It looks pretty innoscent

    # -- THEME AUTO-WRITTEN DO NOT EDIT
    include "/usr/share/themes/Raleigh/gtk-2.0/gtkrc"
    
    style "user-font" {
            font_name = "Sans 10"
    }
    
    widget_class "*" style "user-font"
    
    gtk-font-name="Sans 10"
    
    include "/home/gentix/.gtkrc.mine"

    # -- THEME AUTO-WRITTEN DO NOT EDIT

/usr/share/themes/Raleigh/gtk-2.0/gtkrc is empty and ~/.gtkr.mine doesn't exist.

I'm feeling pretty stumped hmm

Offline

#8 2015-11-07 17:51:44

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [solved] Why do GTK applications look like this?

How about setting the correct DPI explicitly?

Find the current value with:

xdpyinfo|grep resolution

Set it by (eg) calling:

startx -- -dpi xxx

Offline

#9 2015-11-07 19:51:50

gentix
Member
Registered: 2015-10-24
Posts: 6

Re: [solved] Why do GTK applications look like this?

That works! Thank you Head -- that is the breakthorugh I was looknig for.

Offline

Board footer

Powered by FluxBB