Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-06-30 16:01:34

bfg9000it
Member
From: Rome, Italy
Registered: 2019-06-30
Posts: 3

HiDpi external icons panel too big

Hi everybody,
I'm an (old) archlinux fan and I've just installed our favourite DE on a Dell Inspiron which has a HiDpi touchscreen panel

[bfg@bfg-a ~]$ xrandr 
Screen 0: minimum 320 x 200, current 3840 x 2160, maximum 8192 x 8192
eDP-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 293mm x 165mm

Using hints from archlinux wiki
https://wiki.archlinux.org/index.php/HiDPI
which are, in short:

xrandr --dpi 192 & (.xinitrc)
Default-xhdpi (as theme)
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5 (.bashrc)
"gtk-large-toolbar=96,96:gtk-small-toolbar=64,64:gtk-menu=64,64:gtk-dialog=96,96:gtk-button=64,64:gtk-dnd=64,64" (under Settings Manager > Settings Editor > xsettings > Gtk > IconSizes)

I've fixed all the issues except one:
xfce4-upper-panel

As you can see only external icon size are bigger than upper panel size (only network-manager-applet icon is smaller) which is 48pixel and if I try to enlarge icons become bigger and always out of scale.

Can you address me to a solution or we have to wait to a new version of xfce4-panel (this one is 4.12.2 version)?

Offline

#2 2019-06-30 20:37:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,491

Re: HiDpi external icons panel too big

Hello and welcome.

Try using the CSS scale() function to adjust the sizes of the oversized icons. Assuming that is the pulseaudio plugin, you can put the following in ~/.config/gtk-3.0/gtk.css to scale the icon smaller:

#pulseaudio-button {
	-gtk-icon-transform: scale(0.9);
}

...and adjust 0.9 to smaller values until it sizes properly.

I'm not sure what the camera icon is for, but you can use the GTK Inspector to find it's class name and do the same.

Xfce support for HiDPi will be significantly better in 4.14 where it will be built on the GTK3 toolkit which natively supports HiDPi.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-07-01 20:14:50

bfg9000it
Member
From: Rome, Italy
Registered: 2019-06-30
Posts: 3

Re: HiDpi external icons panel too big

Thank you ToZ,

I'm trying but it does not change at all sad
with Inspector I can see a pulseaudio-button object. There is also a CSS window where I can put directly CSS code but... nothing.
The only responsive change is when I open gtk-inspector tab "visual" mode and I change a property called "reduce window" or "scale window" (I'm not sure because I'm using an italian localized interface -> "Riduzione finestra") from value "2" to value "1".
7M3uGXXl.png
I don't know if there is a way to save these properties in a file loadable at xfce startup...

Offline

#4 2019-07-01 21:51:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,491

Re: HiDpi external icons panel too big

Can you show me your ~/.config/gtk-3.0/gtk.css file?

Did you restart xfce4-panel after making a change?
Did you try different values (like 0.5)?

Changing that value from 2 back to 1 negates the GDK_SCALE setting - so not a solution.

-----------------------------

Edit: Sorry my bad, typo in my previous config code. Try this instead:

#pulseaudio-button image {
    -gtk-icon-transform: scale(0.5);
}

Last edited by ToZ (2019-07-01 22:01:42)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-07-02 19:39:14

bfg9000it
Member
From: Rome, Italy
Registered: 2019-06-30
Posts: 3

Re: HiDpi external icons panel too big

Thank you now icons are ok! cool

#pulseaudio-button image {
    -gtk-icon-transform: scale(0.5);
}
#xfce-panel-button image {
    -gtk-icon-transform: scale(0.5);
}
#xfce4-clipman-plugin image {
    -gtk-icon-transform: scale(0.5);
}

where xfce-panel-button is for xfce4-screenshooter and xfce4-clipman-plugin is self-explanatory big_smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 532.38 KiB (Peak: 533.23 KiB) ]