Skip to content

Commit

Permalink
Remove the useMica key (#13872)
Browse files Browse the repository at this point in the history
It's not making it for 1.16, so it's out.
Closes a bullet point in #13725
  • Loading branch information
zadjii-msft authored Aug 29, 2022
1 parent 76a5ff1 commit 19b6d35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
16 changes: 5 additions & 11 deletions src/cascadia/LocalTests_SettingsModel/ThemeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ namespace SettingsModelLocalTests
},
"window":
{
"applicationTheme": "light",
"useMica": true
"applicationTheme": "light"
}
})" };

Expand All @@ -81,7 +80,6 @@ namespace SettingsModelLocalTests

VERIFY_IS_NOT_NULL(theme->Window());
VERIFY_ARE_EQUAL(winrt::Windows::UI::Xaml::ElementTheme::Light, theme->Window().RequestedTheme());
VERIFY_ARE_EQUAL(true, theme->Window().UseMica());
}

void ThemeTests::ParseEmptyTheme()
Expand Down Expand Up @@ -163,8 +161,7 @@ namespace SettingsModelLocalTests
},
"window":
{
"applicationTheme": "light",
"useMica": true
"applicationTheme": "light"
}
},
{
Expand All @@ -175,16 +172,14 @@ namespace SettingsModelLocalTests
},
"window":
{
"applicationTheme": "light",
"useMica": true
"applicationTheme": "light"
}
},
{
"name": "backgroundOmittedEntirely",
"window":
{
"applicationTheme": "light",
"useMica": true
"applicationTheme": "light"
}
}
]
Expand Down Expand Up @@ -239,8 +234,7 @@ namespace SettingsModelLocalTests
"tabRow": {},
"window":
{
"applicationTheme": "light",
"useMica": true
"applicationTheme": "light"
}
}
]
Expand Down
5 changes: 2 additions & 3 deletions src/cascadia/TerminalSettingsModel/MTSMSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ Author(s):
X(winrt::Microsoft::Terminal::Settings::Model::TabRowTheme, TabRow, "tabRow", nullptr) \
X(winrt::Microsoft::Terminal::Settings::Model::TabTheme, Tab, "tab", nullptr)

#define MTSM_THEME_WINDOW_SETTINGS(X) \
X(winrt::Windows::UI::Xaml::ElementTheme, RequestedTheme, "applicationTheme", winrt::Windows::UI::Xaml::ElementTheme::Default) \
X(bool, UseMica, "useMica", false)
#define MTSM_THEME_WINDOW_SETTINGS(X) \
X(winrt::Windows::UI::Xaml::ElementTheme, RequestedTheme, "applicationTheme", winrt::Windows::UI::Xaml::ElementTheme::Default)

#define MTSM_THEME_TABROW_SETTINGS(X) \
X(winrt::Microsoft::Terminal::Settings::Model::ThemeColor, Background, "background", nullptr) \
Expand Down
1 change: 0 additions & 1 deletion src/cascadia/TerminalSettingsModel/Theme.idl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ namespace Microsoft.Terminal.Settings.Model

runtimeclass WindowTheme {
Windows.UI.Xaml.ElementTheme RequestedTheme { get; };
Boolean UseMica { get; };
}

runtimeclass TabRowTheme {
Expand Down

0 comments on commit 19b6d35

Please sign in to comment.