Skip to content

Commit

Permalink
stragglers
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 26, 2022
1 parent 7fcfda3 commit df0efff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions src/cascadia/TerminalSettingsModel/defaults.json
Expand Up @@ -283,15 +283,21 @@
"themes": [
{
"name": "light",
"window.applicationTheme": "light"
"window":{
"applicationTheme": "light"
}
},
{
"name": "dark",
"window.applicationTheme": "dark"
"window":{
"applicationTheme": "dark"
}
},
{
"name": "system",
"window.applicationTheme": "system"
"window":{
"applicationTheme": "system"
}
}
],
"actions":
Expand Down
4 changes: 2 additions & 2 deletions src/cascadia/WindowsTerminal/AppHost.cpp
Expand Up @@ -1329,9 +1329,9 @@ void AppHost::_updateTheme()
{
auto theme = _logic.Theme();

_window->OnApplicationThemeChanged(theme.RequestedTheme());
_window->OnApplicationThemeChanged(theme.Window().RequestedTheme());

int attribute = theme.UseMica() ? /* DWMSBT_MAINWINDOW */ 2 : /*DWMSBT_NONE*/ 1;
int attribute = theme.Window().UseMica() ? /* DWMSBT_MAINWINDOW */ 2 : /*DWMSBT_NONE*/ 1;
DwmSetWindowAttribute(_window->GetHandle(), /* DWMWA_SYSTEMBACKDROP_TYPE */ 38, &attribute, sizeof(attribute));
}

Expand Down

1 comment on commit df0efff

@github-actions

This comment was marked as outdated.

Please sign in to comment.