File Explorer navigation pane: thin divider, even padding
Tidies up the navigation pane of File Explorer: a thin divider next to the files area, even padding on all sides, faded or hidden pin icons, longer or shorter separators and a vertical offset of the expand arrows
Author: NDruce
A set of small adjustments of the navigation pane of File Explorer: the tree
of folders on the left of a folder window. Every adjustment has a setting, and
can be changed or turned off.
Before and after
The pin icons are set to 10% opacity in this screenshot, and the pointer is on
the folder Data (D:), which shows the expand arrows. The left half is without
the mod, the right half is with the mod.

What it does
- Thin divider. The strip between the navigation pane and the files area
is replaced with a line of 1 pixel. By default, the line has the color of
the line below the command bar, for the light and for the dark theme. The
color is configurable. The navigation pane can still be resized by dragging
the divider.
- Even padding. The gap to the left of the items of the navigation pane is
made the same as the gap to the right of them. The size is configurable. A
space above and below the contents of the navigation pane can be added too.
- Pin icons. The pin icons to the right of the pinned folders can be made
less visible, with a configurable opacity, or hidden.
- Separators. The lines which separate the groups of the navigation pane
can be made longer or shorter. They can go from edge to edge.
- Expand arrows. The arrows can be moved vertically.
Defaults
The divider, the padding, the pin icons and the offset of the arrows are
adjusted by default. To get the stock look of a part back, use these values:
- Thin divider: off.
- Padding of the navigation pane: -1.
- Vertical padding of the navigation pane: 0.
- Hide the pin icons: off, with the opacity of 0.
- Vertical offset of the expand arrows: 0.
The adjustment of the separators is turned off by default.
Other mods
The thin divider and the padding have no counterpart in other mods. For the
rest, there are mods which do related things in a different way:
- Explorer TreeItem Tweaker and Classic Explorer Treeview can hide the
pin icons. This mod can also fade them instead of hiding them.
- Explorer TreeLine Killer hides the separators and changes the spacing
around them. This mod keeps the separators and changes their length.
- Explorer Navigation Tree Offset shifts the tree and can remove the
expand arrows. This mod moves the arrows vertically by a pixel or two.
The mods can be used together. A part of this mod which is set to its stock
value does nothing at all, so if another mod takes care of the pin icons, the
separators or the arrows, set that part to the stock value here, as listed
above. The combinations with those mods weren't tested.
The files area of a folder window is handled by a separate mod, File
Explorer List view indent fix and files area spacing.
Scaling and themes
The padding and the side gaps of the separators follow the display scaling.
The offset of the expand arrows is a small correction, and is applied in
physical pixels regardless of the scaling.
The mod was only tested with a single monitor. With several monitors of
different scaling, the side gaps of the separators can be off on a monitor
whose scaling differs from the one of the main monitor. A folder window which
was moved to such a monitor can also keep the adjusted padding after the mod
is turned off, until it's reopened.
The automatic color of the thin divider is chosen when a folder window is
opened. Windows which are already open when the theme changes keep the old
color until they're reopened. The divider is left alone in the high contrast
mode.
Other programs
By default, the mod only applies to File Explorer (explorer.exe). That's the
recommended setup, and nothing has to be configured for it.
The same navigation pane is used by the Open/Save dialogs of other programs.
To adjust it there too, add the programs to the custom process inclusion list
in the Advanced tab of the mod, by the name of the executable file, for
example notepad.exe. explorer.exe doesn't have to be added, it's always
included.
It's also possible to add *, which means all programs. The mod is then
loaded into every process, including the ones which never show a file dialog,
so adding only the programs you need is the lighter option.
Only 64-bit programs are supported. In a program other than File Explorer, the
mod does nothing until the program loads explorerframe.dll, which usually
happens when a file dialog is opened for the first time. From then on, the
vertical offset of the expand arrows applies to all tree views of that
program.
How it works
The divider and the padding are properties of DirectUI elements of the frame
of a folder window. They're changed when a frame is created, and the windows
which are already open are adjusted when the mod is loaded. The functions
which are exported by dui70.dll are used for that. The adjustments are only
made to elements which have the expected stock values.
The pin icons are the state images of the tree of the navigation pane. The mod
gives the tree a copy of its state image list with faded images, and leaves
the list of File Explorer itself untouched.
The separators are adjusted while File Explorer draws them, which relies on
the debug symbols of explorerframe.dll. If that part can't be set up on a
Windows build, the rest of the mod still works. The expand arrows are moved
while they're drawn with the theme of a tree view.
No files are modified. When the mod is turned off, the stock look is restored.
Tested on Windows 11 build 26300 (26H2 preview) at 125% scaling, with the
light and the dark theme.