Define TabViewItemHeaderBackground

This makes the tabs still adhere to the WT theme. However, that doesn't
necessarily guarantee that the colors will be in high contrast.
This commit is contained in:
Carlos Zamora
2024-10-25 10:26:00 -07:00
parent 8d3f12b1c0
commit 5be0056dec

View File

@@ -471,6 +471,7 @@ namespace winrt::TerminalApp::implementation
const auto& tabItemResources{ TabViewItem().Resources() };
TabViewItem().Background(deselectedTabBrush);
tabItemResources.Insert(winrt::box_value(L"TabViewItemHeaderBackground"), deselectedTabBrush);
tabItemResources.Insert(winrt::box_value(L"TabViewItemHeaderBackgroundSelected"), selectedTabBrush);
tabItemResources.Insert(winrt::box_value(L"TabViewItemHeaderBackgroundPointerOver"), hoverTabBrush);
tabItemResources.Insert(winrt::box_value(L"TabViewItemHeaderBackgroundPressed"), selectedTabBrush);