diff --git a/support/hololens/ServoApp/BrowserPage.cpp b/support/hololens/ServoApp/BrowserPage.cpp index 14d3d172dcf..39aa0709993 100644 --- a/support/hololens/ServoApp/BrowserPage.cpp +++ b/support/hololens/ServoApp/BrowserPage.cpp @@ -283,16 +283,16 @@ void BrowserPage::ClearConsole() { void BrowserPage::OnDevtoolsMessage(DevtoolsMessageLevel level, hstring source, hstring body) { Dispatcher().RunAsync(CoreDispatcherPriority::High, [=] { - auto fgColor = UI::Colors::White(); - auto bgColor = UI::Colors::White(); + auto dotColor = UI::Colors::Transparent(); + auto bgColor = UI::Colors::Transparent(); if (level == servo::DevtoolsMessageLevel::Error) { - fgColor = UI::Colors::Red(); + dotColor = UI::Colors::Red(); bgColor = UI::Colors::LightPink(); } else if (level == servo::DevtoolsMessageLevel::Warn) { - fgColor = UI::Colors::Orange(); + dotColor = UI::Colors::Orange(); bgColor = UI::Colors::LightYellow(); } - mLogs.Append(make(fgColor, bgColor, body, source)); + mLogs.Append(make(dotColor, bgColor, body, source)); }); } diff --git a/support/hololens/ServoApp/BrowserPage.h b/support/hololens/ServoApp/BrowserPage.h index 74f2b57ee57..05091ef6604 100644 --- a/support/hololens/ServoApp/BrowserPage.h +++ b/support/hololens/ServoApp/BrowserPage.h @@ -64,18 +64,19 @@ private: struct ConsoleLog : ConsoleLogT { public: - ConsoleLog(Windows::UI::Color fg, Windows::UI::Color bg, hstring b, hstring s) + ConsoleLog(Windows::UI::Color dot, Windows::UI::Color bg, hstring b, + hstring s) : mSource(s), mBody(b) { - mFgColor = UI::Xaml::Media::SolidColorBrush(fg); + mDotColor = UI::Xaml::Media::SolidColorBrush(dot); mBgColor = UI::Xaml::Media::SolidColorBrush(bg); }; - SolidColorBrush FgColor() { return mFgColor; }; + SolidColorBrush DotColor() { return mDotColor; }; SolidColorBrush BgColor() { return mBgColor; }; hstring Source() { return mSource; }; hstring Body() { return mBody; }; private: - SolidColorBrush mFgColor; + SolidColorBrush mDotColor; SolidColorBrush mBgColor; hstring mSource; hstring mBody; diff --git a/support/hololens/ServoApp/BrowserPage.idl b/support/hololens/ServoApp/BrowserPage.idl index 1f1c32342bc..64d646b36e9 100644 --- a/support/hololens/ServoApp/BrowserPage.idl +++ b/support/hololens/ServoApp/BrowserPage.idl @@ -9,8 +9,8 @@ namespace ServoApp runtimeclass ConsoleLog { - ConsoleLog(Windows.UI.Color fgColor, Windows.UI.Color bgColor, String body, String source); - Windows.UI.Xaml.Media.SolidColorBrush FgColor { get; }; + ConsoleLog(Windows.UI.Color dotColor, Windows.UI.Color bgColor, String body, String source); + Windows.UI.Xaml.Media.SolidColorBrush DotColor { get; }; Windows.UI.Xaml.Media.SolidColorBrush BgColor { get; }; String Body{ get; }; String Source{ get; }; diff --git a/support/hololens/ServoApp/BrowserPage.xaml b/support/hololens/ServoApp/BrowserPage.xaml index f07c60b55fb..0f5a6bc06c4 100644 --- a/support/hololens/ServoApp/BrowserPage.xaml +++ b/support/hololens/ServoApp/BrowserPage.xaml @@ -155,7 +155,7 @@ - + @@ -169,8 +169,8 @@ - - + +