mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
UWP console: force white background
This commit is contained in:
parent
c76d1318f3
commit
1c2ac3f2a1
4 changed files with 15 additions and 14 deletions
|
@ -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<ConsoleLog>(fgColor, bgColor, body, source));
|
||||
mLogs.Append(make<ConsoleLog>(dotColor, bgColor, body, source));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue