diff --git a/src/cascadia/TerminalApp/AdminWarningPlaceholder.cpp b/src/cascadia/TerminalApp/AdminWarningPlaceholder.cpp index 01bd65cbf..396c72473 100644 --- a/src/cascadia/TerminalApp/AdminWarningPlaceholder.cpp +++ b/src/cascadia/TerminalApp/AdminWarningPlaceholder.cpp @@ -15,6 +15,13 @@ namespace winrt::TerminalApp::implementation _Commandline{ cmdline } { InitializeComponent(); + // If the content we're hosting is a TermControl, then use the control's + // BG as our BG, to give the impression that it's there, under the + // dialog. + if (const auto termControl{ control.try_as() }) + { + RootGrid().Background(termControl.BackgroundBrush()); + } } void AdminWarningPlaceholder::_primaryButtonClick(winrt::Windows::Foundation::IInspectable const& /*sender*/, RoutedEventArgs const& e) diff --git a/src/cascadia/TerminalApp/AdminWarningPlaceholder.xaml b/src/cascadia/TerminalApp/AdminWarningPlaceholder.xaml index e417d124b..6fa544c50 100644 --- a/src/cascadia/TerminalApp/AdminWarningPlaceholder.xaml +++ b/src/cascadia/TerminalApp/AdminWarningPlaceholder.xaml @@ -11,50 +11,63 @@ xmlns:mux="using:Microsoft.UI.Xaml.Controls" mc:Ignorable="d"> - - - - + - + + + + + - + - - -