New
#1
Custom icon front-back for folders containing files
Greetings,
Through editing the registry i replaced the default icon for general folders, it applies with empty folders and non-big-icon views (as suggested in some old guide):
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
; Folder
"3"="%UserProfile%\\System\\Icons\\Folder.ico,0"
"4"="%UserProfile%\\System\\Icons\\Folder.ico,0"
; This Pc (from other folders, not from desktop)
"15"="%UserProfile%\\System\\Icons\\ThisPc.ico,0"
; Change the arrow of all shortcuts
"29"="%UserProfile%\\System\\Icons\\ShortcutArrow.ico,0"
; again folder
"155"="%UserProfile%\\System\\Icons\\Folder.ico,0"
"205"="%UserProfile%\\System\\Icons\\Folder.ico,0"
Then i found out left value numbers coincide with the index of said icon inside imageres.dll, which is the file that holds all default stuff.
In the past i've directly edited imageres.dll via a resource editing tool, but doing so the default imageres.dll would be recovered with every single windows update or check, and i dont want to replace it manually everytime.
Since the previous keys seem to override the images from imageres.dll, i looked there for the two images used as back side and front side of the folder icon when it contains files that are previewed, ad added the two relative keys to the registry:
; Folder with content
;back
"5"="%UserProfile%\\System\\Icons\\Folder Back.ico,0"
;front
"6"="%UserProfile%\\System\\Icons\\Folder Front.ico,0"
But unlike the previous ones, this doesn't work; i cant find any duplicate within imageres, 5 and 6 are the only indexes where folder's back and front parts appear.
Does anyone know any way to override the default? Or did i miss something?
Note: this solution of redirecting the original index to a path doesn't work with the icons that depend on your theme (this pc, recycle bin), theme's settings override both imageres.dll and registry. I noticed because even editing imageres default "this pc" icon i kept seeing the one from current theme.
But folder's back-front aren't theme-dependent so… idk
_______________________________________
In the image, top to bottom:
- successfully changed default folder icon
- example of "non empty" folder composed of 3 parts: back icon, content preview, front icon
- back icon replacement
- front icon replacement