- Introduction
- Themes
- Explorer frame container height
- Translucent background effect
- Rows
- Tab
- Navigation Bar
- Command Bar
- Details pane
- Home Page
- Gallery Page
- Context menus and tooltips
- Visual states
- Transforms
- Colors
This is a collection of commonly requested file explorer styling customizations for Windows 11. It is intended to be used with the Windows 11 File Explorer Styler Windhawk mod.
If you're not familiar with Windhawk, here are the steps for installing the mod:
- Download Windhawk from windhawk.net and install it.
- Go to "Mods" in the upper right menu.
- Find and install the "Windows 11 File Explorer Styler" mod.
After installing the mod, open its Settings tab and adjust the styles according to your preferences.
Some customizations are best adjusted with other Windhawk mods. Links to those mods are provided where applicable.
See also:
The Windows 11 start menu styling
guide,
The Windows 11 taskbar styling
guide,
The Windows 11 notification center styling
guide.
How to find targets using UWPSpy.
The mod can only style the parts of the window that are built with XAML: the tabs, the navigation bar, the command bar, the details pane, the Home and Gallery pages, and some of the menus and tooltips.
The file list (in any layout, including "Details"), the sidebar and the status bar aren't built with XAML, so the mod can't change their colors, fonts, text size or row spacing. The one exception is the translucent background effect, which can cover the entire window. For the sidebar, check out the Explorer TreeItem Tweaker mod.
If you're looking for a customization that is not listed here, please open an issue.
If you have a file explorer styling customization or theme that you would like to share, please submit a pull request.
Themes are collections of styles that can be imported into the Windows 11 File Explorer Styler mod. The following themes are available:
The height of the explorer frame container, which includes the tabs, the address bar, and the command bar; set it to zero to use the default height. The height can be adjusted in the mod settings.
Lower the height after removing or merging rows so that no empty space is left behind.
The "Translucent background effect" mod setting applies an effect to the File Explorer window background: Blur (AccentBlurBehind), Acrylic, Mica or Mica Alt. The "Translucent background effect region" setting chooses whether the effect covers the entire window or only the File Explorer frame.
Elements with their own background hide the effect, so make them transparent too, for example the navigation bar, the command bar, the details pane, the Home page and the Gallery page. The Translucent Explorer11 theme is a good starting point.
The mod's effects don't apply to windows with the legacy frame. For those windows, or for additional effects, set this option to "Windows default" and use the Translucent Windows mod.
The top of the window is a grid with three rows: the tabs (Grid.Row=0), the
navigation bar (Grid.Row=1) and the command bar (Grid.Row=2). Setting
Grid.Row or Grid.RowSpan on these controls moves them between rows.
To fit the tabs and the navigation bar into one row, see the Minimal Explorer11 theme.
Target:
FileExplorerExtensions.NavigationBarControl
Style:
Grid.Row=2
Target:
FileExplorerExtensions.CommandBarControl_Wave1, FileExplorerExtensions.CommandBarControl
Style:
Grid.Row=1
Target:
Grid#TabContainer > ContentPresenter > StackPanel > TextBlock
Styles:
Foreground=Magenta
FontFamily=Segoe UI
FontWeight=Normal
To style the other tabs too, see Tab shape and state colors.
Target:
TabViewItem > Grid#LayoutRoot > Canvas > Microsoft.UI.Xaml.Shapes.Path#SelectedBackgroundPath
Style:
Fill=#00FFFF
Replaces the default tab shape with a rounded rectangle that has a background for each visual state.
Target:
TabViewItem > Grid#LayoutRoot > Canvas
Style:
Visibility=Collapsed
Target:
TabViewItem > Grid#LayoutRoot > Grid#TabContainer
Styles:
Background=Transparent
BorderThickness=0
Target:
TabViewItem > Grid#LayoutRoot
Styles:
CornerRadius=5
Margin=2,4,0,4
Height=29
Target:
TabViewItem > Grid#LayoutRoot@CommonStates
Styles:
Background@Normal:=<SolidColorBrush Color="#808080" Opacity="0.05"/>
Background@PointerOver:=<SolidColorBrush Color="#808080" Opacity="0.15"/>
Background@Selected:=<SolidColorBrush Color="#808080" Opacity="0.35"/>
Background@PointerOverSelected:=<SolidColorBrush Color="#808080" Opacity="0.35"/>
Background@PressedSelected:=<SolidColorBrush Color="#808080" Opacity="0.35"/>
If curved corners remain next to the selected tab, hide them too.
Target:
Microsoft.UI.Xaml.Shapes.Path#LeftRadiusRenderArc, Microsoft.UI.Xaml.Shapes.Path#RightRadiusRenderArc
Style:
Visibility=Collapsed
Target:
TabViewItem
Styles:
Width=150
Margin=0,0,8,0
Target:
Border#BottomBorderLine, Border#LeftBottomBorderLine, Border#RightBottomBorderLine
Style:
Visibility=Collapsed
Use the target for each part you want to hide.
Close button:
Grid#TabContainer > Button#CloseButton
Icon:
Grid#TabContainer > Viewbox#IconBox
Add button:
Grid#TabContainerGrid > Border > Button#AddButton
Style:
Visibility=Collapsed
Removes the whole row, including the add button. The minimize, maximize and close buttons stay in place, so the navigation bar needs a top margin to clear them.
Target:
FileExplorerExtensions.FileExplorerTabControl
Style:
Visibility=Collapsed
Target:
FileExplorerExtensions.NavigationBarControl
Styles:
Grid.Row=0
MinHeight=48
Margin=0,26,0,1
Then set the Explorer frame container height to about 123. The AddressSearchOnly theme uses 80, which also crops the command bar out of view.
Target:
Grid#NavigationBarControlGrid
Style:
Background:=<SolidColorBrush Color="Gray" Opacity="0.4"/>
Use the target for each button you want to hide. The stop button takes the place of the refresh button while a folder is loading, so hide both.
Targets:
AppBarButton#backButton
AppBarButton#forwardButton
AppBarButton#upButton
AppBarButton#refreshButton
AppBarButton#stopButton
Style:
Visibility=Collapsed
Target:
FileExplorerExtensions.AddressBarControl > Grid#PART_LayoutRoot
Styles:
Background=#FFFF00
CornerRadius=6
The address bar turns into a text box when clicked. To round its corners too:
Target:
AutoSuggestBox#PART_AutoSuggestBox > Grid#LayoutRoot > TextBox#TextBox
Style:
CornerRadius=6
Target:
AutoSuggestBox#FileExplorerSearchBox > Grid#LayoutRoot > TextBox > Grid@CommonStates > Border#BorderElement
Styles:
Background=#FFFF00
CornerRadius=6
BorderThickness=0
Targets:
Grid#FileExplorerAddressBarGrid
AutoSuggestBox#FileExplorerSearchBox
Style:
Height=28
Target:
AutoSuggestBox#FileExplorerSearchBox
Style:
Visibility=Collapsed
To let the address bar fill the free space:
Target:
Grid#FileExplorerAddressBarGrid
Style:
Grid.ColumnSpan=2
Targets:
FileExplorerExtensions.CommandBarControl_Wave1 > Grid, Grid#CommandBarControlRootGrid
CommandBar#FileExplorerCommandBar
Style:
Background=Transparent
Applies to the buttons of both the command bar and the navigation bar. To style
a single button, add its name, for example AppBarButton#backButton. See
Visual states for more about the states.
Target:
AppBarButton > Grid#Root@CommonStates > Border#AppBarButtonInnerBorder
Styles:
Background@PointerOver:=<SolidColorBrush Color="#808080" Opacity="0.15"/>
Background@Pressed:=<SolidColorBrush Color="#808080" Opacity="0.25"/>
Target:
AppBarSeparator
Style:
Visibility=Collapsed
Hides the right end of the command bar, which holds the Details button.
Target:
CommandBar#FileExplorerSecondaryCommandBar
Style:
Visibility=Collapsed
Most command bar buttons have no name, so they're matched by their tooltip.
Tooltips depend on the Windows language, and these examples are for English:
Cut, Copy, Paste, Rename, Share, Delete.
Target:
AppBarButton[ToolTipService.ToolTip = Cut]
Style:
Visibility=Collapsed
The Sort button has a name, so it can be matched in any language with
AppBarButton#SortAndGroupButton.
A button can also be matched by its position, which works in any language but can break when a Windows update changes the buttons. For example, Cut is the third child, counting separators:
CommandBar#FileExplorerCommandBar > * > AppBarButton[3]
Target:
FileExplorerExtensions.CommandBarControl_Wave1, FileExplorerExtensions.CommandBarControl
Style:
Visibility=Collapsed
Target:
FileExplorerExtensions.NavigationBarControl
Styles:
Grid.RowSpan=2
Margin=0,0,0,1
Then set the Explorer frame container height to 87.
The pane that shows information about the selected item. It can be toggled with the "Details" button in the command bar or with Alt+Shift+P. It's different from the "Details" layout of the file list, which can't be styled.
Target:
Grid#DetailsViewControlRootGrid
Style:
Background=#FFFF00
Target:
StackPanel#DetailsViewThumbnail > Grid
Style:
Background=#FFFF00
Target:
Grid#HomeViewRootGrid
Style:
Background=#FFFF00
Targets:
FileExplorerExtensions.GalleryViewControl#GalleryViewControl > Grid
FileExplorerExtensions.GalleryViewControl#GalleryViewControl > Grid > Grid#GalleryRootGrid
Style:
Background=Transparent
Applies to the right-click menu and to the command bar's "See more" menu.
Target:
CommandBarOverflowPresenter#SecondaryItemsControl > Grid#LayoutRoot
Styles:
Background=#FFFF00
BorderBrush=#00FFFF
BorderThickness=1
CornerRadius=8
When changing the corner radius, also target Grid#OuterOverflowContentRootV2
with the same CornerRadius.
Note
Windows doesn't support translucent effects for these menus, so use an opaque
color. The WindowGlass theme uses a nearly
opaque AcrylicBrush for a similar look.
The row of icons at the top of the right-click menu.
Target:
Microsoft.UI.Xaml.Controls.Primitives.CommandBarFlyoutCommandBar > Grid#LayoutRoot > Grid#OuterContentRoot > Grid#ContentRoot > Grid#PrimaryItemsRoot
Styles:
Background=#FFFF00
BorderBrush=#00FFFF
BorderThickness=1
CornerRadius=8
Some other menus use a different control.
Target:
MenuFlyoutPresenter > Border
Styles:
Background=#FFFF00
BorderBrush=#00FFFF
BorderThickness=1
CornerRadius=8
Target:
ToolTip
Styles:
Background=#FFFF00
BorderBrush=#00FFFF
BorderThickness=1
CornerRadius=8
Some elements change their look depending on their state, for example when
hovered or pressed. To set a style for a specific state, add the visual state
group name to the target with @, and the state name to the style with @.
For example, to change the color of a tab when hovered, target:
TabViewItem > Grid#LayoutRoot@CommonStates
Style:
Background@PointerOver:=<SolidColorBrush Color="#808080" Opacity="0.15"/>
A style without a state applies to every state of the group that doesn't have its own value for that property.
The most common group is CommonStates. Its states depend on the element:
| Element | Target | States |
|---|---|---|
| Tabs | TabViewItem > Grid#LayoutRoot@CommonStates |
Normal, PointerOver, Pressed, Selected, PointerOverSelected, PressedSelected |
| Buttons | AppBarButton > Grid#Root@CommonStates |
Normal, PointerOver, Pressed, Disabled |
| Text boxes | TextBox > Grid@CommonStates |
Normal, PointerOver, Focused, Disabled |
See Finding targets on how to use UWPSpy to find all of the available visual states for an element.
You can use transformation styles to translate, rotate, scale, or skew elements.
Tip
Should I use RenderTransform or Transform3D?
For 2D transformations, it is best to stick to RenderTransform in most cases. Using Transform3D for 2D transformations can cause elements to become blurry. For 3D transformations, you must use Transform3D.
Tip
You can mix and match transformations when using Transform3D! You can also use RenderTransform and Transform3D together.
For example: Transform3D:=<CompositeTransform3D ScaleX="1.5" TranslateY="-15" RotationZ="15" />
RenderTransform:=<TranslateTransform X="15" Y="-15" />
-- or --
Transform3D:=<CompositeTransform3D TranslateX="15" TranslateY="-15" TranslateZ="-15" />
RenderTransform:=<RotateTransform Angle="15" />
-- or --
Transform3D:=<CompositeTransform3D RotationX="-15" RotationY="15" RotationZ="-15" />
X: 3D vertical rotation.Y: 3D horizontal rotation.Z: 2D rotation.
RenderTransform:=<ScaleTransform ScaleX="1.5" ScaleY="-1.5" />
-- or --
Transform3D:=<CompositeTransform3D ScaleX="-1.5" ScaleY="1.5" ScaleZ="-1.5" />
RenderTransform:=<SkewTransform AngleX="-15" AngleY="15" />
-
Applies to Rotate, Scale and Skew:
CenterX: Offsets the transform's origin on the X axis.CenterY: Offsets the transform's origin on the Y axis.CenterZ: Offsets the transform's origin on the Z axis. (Only forTransform3D)
Example:
RenderTransform:=<RotateTransform Angle="15" CenterX="10" CenterY="20" /> -
RenderTransformOrigin- Applies to
RenderTransformonly,Transform3Ddoes not support this attribute. It is a separate attribute and is not set inside of theRenderTransformlikeCenterX/Y/Z. - Sets the transform origin relative to its target's width and height. Format is
X,Yand both numbers range from 0-1.
Example:
RenderTransformOrigin=0.5,0.5This centers the transform's origin.
- Applies to
-
TransformGroup- Applies to
RenderTransformonly,Transform3Ddoes not support this attribute. It is a separate attribute and is not set inside of theRenderTransformlikeCenterX/Y/Z. - Allows you to combine RenderTransforms together into one style, mimicking Transform3D's functionality.
Example:
RenderTransform:=<TransformGroup><RotateTransform Angle="15" /><TranslateTransform X="15" Y="-15" /></TransformGroup> - Applies to
In the following examples, we're going to use Fill as an example, but this
also works for other properties that accept colors, like Background.
Fill=<color>
Replace <color> with the desired color.
A color can be a name (e.g. Red) or a hex code (e.g. #FF0000).
The color can be semi-transparent (e.g. #80FF0000). To have a fully
transparent background, use Transparent.
A color can also be a ThemeResource or StaticResource. There are many such
styles built into Windows.
Fill:=<SolidColorBrush Color="{ThemeResource SystemAccentColor}" Opacity="0.8" />
Accent colors have different lightness available, like SystemAccentColorLight2
or SystemAccentColorDark1. The word Light or Dark is appended at the end
with a number ranging from 1 to 3. Check out the official Microsoft
docs
for all variations.
Fill:=<SolidColorBrush Color="{ThemeResource SystemAccentColorDark2}" Opacity="0.5" />
To have a fully transparent background, use the following style:
Fill=Transparent
In order to have an acrylic effect (a blurred background), you can use
AcrylicBrush. It comes with TintOpacity, which defines how much of the color
needs to be applied.
Fill:=<AcrylicBrush TintColor="Black" TintOpacity="0.8" />
You can also mix acrylic with a variation of an accent color for a more dynamic look that fits the current theme.
Fill:=<AcrylicBrush TintColor="{ThemeResource SystemAccentColorDark2}" TintOpacity="0.3" />
An alternative to Acrylic is the mod's own blur implementation called WindhawkBlur. It differs from Acrylic in that its blur radius, saturation and noise are customizable, and it keeps blurring when battery saver is on or transparency effects are off, unless FallbackColor is set.
Note
WindhawkBlur does not currently support color names (e.g. Red).
BlurAmount: Radius of blur effect (set to 30 to mimic Acrylic).TintLuminosityOpacity: Shifts pixel luminance towards the tint color's luminance. Range: 0.0 to 1.0.TintSaturation: Controls the saturation of the blurred content. 1.0 is unchanged, 0.0 is fully desaturated (grayscale).NoiseOpacity: Adds a procedural noise texture overlay. Controls how visible the noise is (0.0 to 1.0).NoiseDensity: Controls the granularity of the noise texture (defaults to 1.0).FallbackColor: Color used in place of the blur effect when battery saver is on or when transparency effects are disabled in the system settings. Accepts a hex color or aThemeResource. If omitted, the blur effect is used regardless of those settings.
Fill:=<WindhawkBlur BlurAmount="10" TintColor="#80ff0000" />
Fill:=<WindhawkBlur BlurAmount="10" TintColor="#ff0000" TintOpacity="0.5" />
These examples set a blur that is tinted with red at 50% opacity. Both versions have the same effect.
TintColor: Hex color in#AARRGGBBor#RRGGBBformat that is applied to the blur.TintOpacity: Opacity of the color that overrides the alpha ofTintColor.
Tip
There is no need to specify a TintOpacity value if your TintColor has an alpha value.
Fill:=<WindhawkBlur BlurAmount="10" TintColor="{ThemeResource SystemAccentColor}" TintOpacity="0.5"/>
TintColor: ThemeResource color, such asSystemAccentColor.TintOpacity: Overrides the opacity of the ThemeResource color.
Note
Unfortunately, it is not possible to set a Mica effect at this time with any of Windhawk's styler mods. To apply Mica to the window background instead, use the translucent background effect setting.
The background can also be a gradient. For example, to have a gradient from yellow to red to blue to lime green, use the following style:
Fill:=<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5"><GradientStop Color="Yellow" Offset="0.0" /><GradientStop Color="Red" Offset="0.25" /><GradientStop Color="Blue" Offset="0.75" /><GradientStop Color="LimeGreen" Offset="1.0" /></LinearGradientBrush>
The background can also be an image:
Fill:=<ImageBrush Stretch="UniformToFill" ImageSource="<image>" />
Replace <image> with your own image, a URL or a local file path.














