Skip to content

Commit ab79a85

Browse files
committed
Revert "Manually set the automation name of the default color scheme for screen reader (#14704)"
This reverts commit 47f38e3.
1 parent b9089d9 commit ab79a85

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
4242
// Only let this succeed once.
4343
_layoutUpdatedRevoker.revoke();
4444

45-
for (const auto scheme : _ViewModel.AllColorSchemes())
46-
{
47-
if (scheme.IsDefaultScheme())
48-
{
49-
winrt::hstring newName{ fmt::format(L"{} ({})", scheme.Name(), RS_(L"ColorScheme_DefaultTag/Text")) };
50-
Automation::AutomationProperties::SetName(ColorSchemeListView().ContainerFromItem(scheme), newName);
51-
break;
52-
}
53-
}
54-
5545
ColorSchemeListView().Focus(FocusState::Programmatic);
5646
});
5747
}

src/cascadia/TerminalSettingsEditor/ColorSchemes.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
1313
{
1414
struct ColorSchemes : public HasScrollViewer<ColorSchemes>, ColorSchemesT<ColorSchemes>
1515
{
16-
public:
1716
ColorSchemes();
1817

1918
void OnNavigatedTo(const winrt::Windows::UI::Xaml::Navigation::NavigationEventArgs& e);
@@ -26,9 +25,6 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
2625
WINRT_OBSERVABLE_PROPERTY(Editor::ColorSchemesPageViewModel, ViewModel, _PropertyChangedHandlers, nullptr);
2726

2827
WINRT_CALLBACK(PropertyChanged, Windows::UI::Xaml::Data::PropertyChangedEventHandler);
29-
30-
private:
31-
winrt::Windows::UI::Xaml::FrameworkElement::LayoutUpdated_revoker _layoutUpdatedRevoker;
3228
};
3329
}
3430

0 commit comments

Comments
 (0)