File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
src/cascadia/TerminalCore Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -141,18 +141,13 @@ void Terminal::UpdateAppearance(const ICoreAppearance& appearance)
141141 renderSettings.SetRenderMode (RenderSettings::Mode::IntenseIsBold, appearance.IntenseIsBold ());
142142 renderSettings.SetRenderMode (RenderSettings::Mode::IntenseIsBright, appearance.IntenseIsBright ());
143143
144- // If we're in high contrast mode and AIC is set to Automatic Indexed/Always,
145- // fallback to Indexed/Always respectively.
146- const auto deducedAIC = [this , &appearance]() {
147- const auto initialAIC = appearance.AdjustIndistinguishableColors ();
148- switch (initialAIC)
149- {
150- case AdjustTextMode::Automatic:
151- return _highContrastMode ? AdjustTextMode::Indexed : AdjustTextMode::Never;
152- default :
153- return initialAIC;
154- }
155- }();
144+ // If AIC is set to Automatic,
145+ // update the value based on if high contrast mode is enabled.
146+ AdjustTextMode deducedAIC = appearance.AdjustIndistinguishableColors ();
147+ if (deducedAIC == AdjustTextMode::Automatic)
148+ {
149+ deducedAIC = _highContrastMode ? AdjustTextMode::Indexed : AdjustTextMode::Never;
150+ }
156151
157152 switch (deducedAIC)
158153 {
You can’t perform that action at this time.
0 commit comments