![[W11 Taskbar Styler] Something is forcing minimum width somewhere to the Taskbar.TaskbarFrame island which leaves an unnecessary gap I want to remove](https://preview.redd.it/ngjtcoyauy1h1.png?auto=webp&s=824b649b3540ec9b0710f07db94d5819c654f973)
▲ 2 r/Windhawk
[W11 Taskbar Styler] Something is forcing minimum width somewhere to the Taskbar.TaskbarFrame island which leaves an unnecessary gap I want to remove
When there are less than two icons on my taskbar, it leaves this big empty space that has been bugging me for a bit now. I tried changing margins, width, grid columns, overriding MinWidth on different controls. In UWPSpy, I saw no attribute that would make the island wider than fit. Is there any style I could add to fix this thing?
ThemeTargetStyles{L"ScrollViewer > ScrollContentPresenter > Border > Grid", {
L"Background=Transparent"}},
ThemeTargetStyles{L"Taskbar.TaskbarFrame", {
L"HorizontalAlignment=Right",
L"Width=Auto",
L"Height=54",
L"Grid.Column=0",
L"Margin=4,0,4,0",
L"Background=Transparent"}},
ThemeTargetStyles{L"Taskbar.TaskbarFrame > Grid", {
L"Background:=<WindhawkBlur BlurAmount=\"4\" TintColor=\"#000000\" TintOpacity=\"0.1\" FallbackColor=\"{ThemeResource SystemChromeHighColor}\" />",
L"BorderBrush:=<SolidColorBrush Color=\"#FFFFFF\" Opacity=\"0.1\" />",
L"BorderThickness=1",
L"Height=48",
L"MinWidth=0",
L"CornerRadius=8"}},
ThemeTargetStyles{L"Taskbar.TaskbarBackground#BackgroundControl", {
L"Visibility=Collapsed"}},
ThemeTargetStyles{L"Taskbar.TaskbarBackground > Grid", {
L"CornerRadius=8",
L"Opacity=1"}},
ThemeTargetStyles{L"Microsoft.UI.Xaml.Controls.ItemsRepeater#TaskbarFrameRepeater", {
L"Margin=2,0,2,0"}},
ThemeTargetStyles{L"Taskbar.SearchBoxButton > Taskbar.TaskListButtonPanel", {
L"Margin=2,0,6,0"}},
ThemeTargetStyles{L"Windows.UI.Xaml.Shapes.Rectangle#BackgroundStroke", {
L"Visibility=Collapsed"}},
ThemeTargetStyles{L"Border#LargeTicker1", {
L"Margin=0,2,4,0"}},
ThemeTargetStyles{L"Border#LargeTicker1 > AdaptiveCards.Rendering.Uwp.WholeItemsPanel > Image", {
L"MaxHeight=27",
L"MaxWidth=27"}},
ThemeTargetStyles{L"Border#LargeTicker1 > AdaptiveCards.Rendering.Uwp.WholeItemsPanel > Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer", {
L"MaxHeight=27",
L"MaxWidth=27"}},
ThemeTargetStyles{L"SystemTray.SystemTrayFrame", {
L"HorizontalAlignment=Left",
L"Grid.Column=1",
L"Margin=2,0,0,0"
L"Height=54"}},
ThemeTargetStyles{L"Grid#SystemTrayFrameGrid", {
L"Background:=<WindhawkBlur BlurAmount=\"4\" TintColor=\"#000000\" TintOpacity=\"0.1\" FallbackColor=\"{ThemeResource SystemChromeHighColor}\" />",
L"BorderBrush:=<SolidColorBrush Color=\"#FFFFFF\" Opacity=\"0.1\" />",
L"BorderThickness=1",
L"CornerRadius=8",
L"Padding=7,3,0,3"}},
ThemeTargetStyles{L"SystemTray.Stack#SecondaryClockStack", {
L"Grid.Column=8"}},
ThemeTargetStyles{L"SystemTray.OmniButton#ControlCenterButton", {
L"Grid.Column=4"}},
ThemeTargetStyles{L"SystemTray.OmniButton#NotificationCenterButton", {
L"Grid.Column=5"}},
ThemeTargetStyles{L"SystemTray.Stack#MainStack", {
L"Grid.Column=6"}},
ThemeTargetStyles{L"SystemTray.Stack#ShowDesktopStack", {
L"Grid.Column=7"
L"Margin=-3,0,0,0"}},
ThemeTargetStyles{L"SystemTray.DateTimeIconContent > Grid > StackPanel", {
L"Orientation=Horizontal",
L"Spacing=12"}},
ThemeTargetStyles{L"TextBlock#InnerTextBlock[Text=\uE971]", {
L"Text=\uE971"}},
ThemeTargetStyles{L"TextBlock#TimeInnerTextBlock", {
L"FontSize=15",
L"FontWeight=Bold"}},
ThemeTargetStyles{L"TextBlock#DateInnerTextBlock", {
L"FontSize=15",
L"FontWeight=SemiBold"}},
ThemeTargetStyles{L"Windows.UI.Xaml.Controls.ScrollViewer > Windows.UI.Xaml.Controls.ScrollContentPresenter > Windows.UI.Xaml.Controls.Border > Windows.UI.Xaml.Controls.Grid", {
L"ColumnDefinitions:=<ColumnDefinitionCollection><ColumnDefinition Width=\"*\"/><ColumnDefinition Width=\"*\"/></ColumnDefinitionCollection>"}},
ThemeTargetStyles{L"Taskbar.AugmentedEntryPointButton > Taskbar.TaskListButtonPanel", {
L"Margin=0"}},
If the i.redd.it image doesn't load, I posted it on Imgur too.
u/ELEKTRO_TURBO_DZIK — 5 days ago