Folder thumbnails on taskbar buttons
Each File Explorer taskbar button shows a preview of the folder it has open, the way that folder looks in Explorer's own icon view
Author: Issuch
Every File Explorer window gets a taskbar icon showing the folder it has open,
drawn the way Explorer draws that folder in its own large-icon view. A folder
full of photos shows those photos on its taskbar button.
Without the mod, every File Explorer window has the same icon:

With the mod, each one shows the folder it has open:

Recommended: FolderThumbnailFix
The mod works best together with
FolderThumbnailFix by
LesFerch. Windows 11 draws the front of a folder over the folder's preview,
which hides most of the pictures inside. FolderThumbnailFix removes that cover,
so a taskbar button shows the pictures in full, as in the screenshot above.
No delay
The mod takes over the window procedure of each Explorer window. When Explorer
changes a window's icon after a navigation or a tab switch, the mod substitutes
the folder preview within that very message. The taskbar therefore gets a
single icon update, at the same moment it would have received Explorer's own
icon, and the generic folder icon never appears in between. A newly opened
window gets its preview before it is shown for the first time.
Previews come from an in-memory cache, from the mod's own disk cache or from
the Windows thumbnail cache. The disk cache is kept in the mod's Windhawk
storage, in a folder which only your account can open, and is removed together
with the mod.
When a preview is in none of them, the button keeps Explorer's own folder icon
and the preview is rendered in the background, usually within a fraction of a
second, and then saved for next time.
No polling
The mod sleeps while nothing happens. It reacts to events: a window being
shown, a navigation, a tab switch, a change among the files of an open folder,
and a window being closed. A folder is re-rendered when its files change, and
once in the background when it is opened again later, so that changes made
while it was closed show up too. That refresh is usually served from the
Windows thumbnail cache.
Requirements
- Disable grouping on the taskbar
with its "Use window icons" option. The mod puts the preview on each
Explorer window, and that mod gives each window its own taskbar button and
makes the button show the window's icon instead of the Explorer icon. To use
window icons for File Explorer only, leave "Use window icons" off and add
explorer.exe to "Use window icons exceptions".
- Thumbnails enabled. In File Explorer, under Options -> View, the checkbox
"Always show icons, never thumbnails" must be unchecked.
The mod has no settings. The preview resolution follows the screen's DPI,
previews are kept on disk so that they are instant after a reboot, and the old
ones are discarded once there are too many of them.