Folder icons

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
ellos
Posts: 18
Joined: Fri Nov 29, 2019 12:09 am

Folder icons

Post by ellos »

Hi, when XNview MP starts scanning folders on local or external disks, it first shows cool-looking icons and then for some reason makes them all yellow, see the screenshot URL.
https://imgur.com/a/Aciy5aO

It looks likes 'recoloring' is done intentionally by the program, but I really would like to stay with the blue ones. They are more Mac-looking, while the yellow ones... look just a clone from windows, which doesn't look great.

Please don't get me wrong, I totally enjoy XNView, but I yellow folders look a bit... archaic.
Is there anyway to configure XNView to use the folders without changing them to yellow? The default ones on the screenshot look pretty cool.



Thank you.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Folder icons

Post by xnview »

on MacOS?
Pierre.
ellos
Posts: 18
Joined: Fri Nov 29, 2019 12:09 am

Re: Folder icons

Post by ellos »

Yes, Mac OS.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Folder icons

Post by xnview »

edit the xnview.ini, and remove all folderColor
Pierre.
ellos
Posts: 18
Joined: Fri Nov 29, 2019 12:09 am

Re: Folder icons

Post by ellos »

Can I change the default xnviewmp folder icon to the icon of my choice?

Thank you.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Folder icons

Post by xnview »

currently not possible, only colors
Pierre.
Neuro-NX
Posts: 24
Joined: Wed Aug 31, 2022 9:38 pm

Re: Folder icons

Post by Neuro-NX »

A related feature, I don't think has been mentioned on this forum.

- If your operating system is Linux based with GTK.
- Passing environment variable QT_QPA_PLATFORMTHEME=gtk2

You can override the folder icons. Place the icons in these destination paths.

Path for SMALL folder:

Code: Select all

~/.icons/hicolor/64x64/places/folder.png
Path for LARGE folder:

Code: Select all

~/.icons/hicolor/192x192/places/folder.png
Note. That if you don't see the new icons. You may need to update your system icon cache.

Code: Select all

gtk-update-icon-cache --force --ignore-theme-index ~/.icons
Appears in the "Folders" tab - Panels > Folder.
small folder icon
small folder icon
Screenshot_2025-05-26_15-48-09.png (111.95 KiB) Viewed 97 times
Appears in the Browser for large thumbnails
large folder icon
large folder icon
Screenshot_2025-05-26_15-47-10.png (114.96 KiB) Viewed 97 times
Icon sizes

The folder '64x64' or '192x192' in the paths above refer to two things.

1. The image dimensions of the icon PNG.
2. Determines which icon gets shown based on the scaling in the application GUI.

These are not fixed values, and may depend on if your display or desktop environment is set to render in HDPI or not. So the icons will may be smaller, if you have not configured the display to output at HDPI (2x window scaling), or have not placed the icons in the correct sub-directory according to the image dimensions.

You need to place the 'places' folders in a sub-directory, according to those matching the icon theme.
- 16x16
- 32x32
- 22x22
- and so on.

If you're interested.
The icon theme referenced in the images are from Colloid-icon-theme.

Someone should document this in a guide on theming.
Post Reply