Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-02-12 09:21:35

AndyM48
Member
Registered: 2023-02-12
Posts: 11

[SOLVED] Thunar Toolbar Icons

Thunar version 4.18.3
XFCE4 version 4.18
GTK version 3.24.36
Arch Linux 6.1.9-arch1-2

GTK Theme "Adwaita"
Icon Theme "oxygen"

The icons used for the sidebar and the main display are from the "oxygen" set, but the icons on the toolbar are "Adwaita"

My question is, why are the icons in the toolbar from the "Adwaita" set and not the "oxygen" set?

If I use the GTK Inspector to look at one of the icons used I see, for example:

icon-name "go-previous-symbolic" char*       GtkImage
icon-set  NULL                   GtkIconSet  GtkImage

I would have thought, in my ignorance, that GtkIconSet is "oxygen"

Can I use gtk.css to change the toolbar icons, and if so how? (I know nothing about css sad)

Last edited by AndyM48 (2023-02-13 14:09:21)

Offline

#2 2023-02-12 12:26:42

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

Re: [SOLVED] Thunar Toolbar Icons

Hello and welcome.

My question is, why are the icons in the toolbar from the "Adwaita" set and not the "oxygen" set?

That's because the oxygen theme doesn't have the required symbolic or vector-based icons, so gtk works up the icon hierarchy chain until it finds an icon to use.

Can I use gtk.css to change the toolbar icons, and if so how? (I know nothing about css sad)

Yes, you can force non-symbolic icons using the following css tweak: add to (or create if missing) ~/.config/gtk-3.0/gtk.css the following:

.thunar toolbar image {-gtk-icon-style: regular;}

You'll need to restart thunar, and it's daemon component, for it to take effect.

Last edited by ToZ (2023-02-12 12:29:33)


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 2023-02-12 13:20:47

AndyM48
Member
Registered: 2023-02-12
Posts: 11

Re: [SOLVED] Thunar Toolbar Icons

Thank you very much. I can start looking into it now

Do I have to put curly brackets around the css code or just as it stands?

Offline

#4 2023-02-12 19:12:10

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

Re: [SOLVED] Thunar Toolbar Icons

Add it just like I've displayed above.


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 2023-02-13 07:15:57

AndyM48
Member
Registered: 2023-02-12
Posts: 11

Re: [SOLVED] Thunar Toolbar Icons

Thank you - it works fine

Offline

#6 2023-02-13 11:50:37

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

Re: [SOLVED] Thunar Toolbar Icons

Glad to hear. Can you mark the thread "[SOLVED]" by editing your first post in this thread and prepending "[SOLVED]" to the Subject line?


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

#7 2023-02-13 14:08:45

AndyM48
Member
Registered: 2023-02-12
Posts: 11

Re: [SOLVED] Thunar Toolbar Icons

Sure

I changed to "elemetary-xfce" icons and it all looks great.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 540.27 KiB (Peak: 541.55 KiB) ]