Skip to content

How to reduce padding of address bar and search bar in Explorer #29

@David-Hari

Description

@David-Hari

I am trying to reduce the amount of padding in the explorer top bar.

I have been able to reduce the margin of the forward/back/etc buttons (Microsoft.UI.Xaml.Controls.AppBarButton) but no matter what I do I am unable to reduce the space above and below the address bar and search bar.

As you can see in this image, I have highlighted the parent NavigationBarControlGrid then the NavigationCommands (Microsoft.UI.Xaml.Controls.CommandBar) and then the FileExplorerAddressBarGrid, both of which are immediate children of NavigationBarControlGrid:
explorer bar

The only styles I currently have set in the "Windows 11 File Explorer Styler" mod are:

{
"controlStyles[0].target":"Microsoft.UI.Xaml.Controls.Grid#NavigationBarControlGrid",
"controlStyles[0].styles[0]":"Padding=0,0,0,0",
"controlStyles[1].target":"Microsoft.UI.Xaml.Controls.AppBarButton",
"controlStyles[1].styles[0]":"Margin=4,4,4,4"
}

Does anyone know how I can do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions