Page 1 of 1

Folder icons

Posted: Thu Apr 24, 2025 7:08 pm
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.

Re: Folder icons

Posted: Fri Apr 25, 2025 8:11 am
by xnview
on MacOS?

Re: Folder icons

Posted: Sat Apr 26, 2025 5:48 pm
by ellos
Yes, Mac OS.

Re: Folder icons

Posted: Sun Apr 27, 2025 8:03 am
by xnview
edit the xnview.ini, and remove all folderColor

Re: Folder icons

Posted: Sat May 03, 2025 2:56 am
by ellos
Can I change the default xnviewmp folder icon to the icon of my choice?

Thank you.

Re: Folder icons

Posted: Tue May 06, 2025 7:36 am
by xnview
currently not possible, only colors

Re: Folder icons

Posted: Mon May 26, 2025 6:19 pm
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 101 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 101 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.