Commit b5b32cd5 authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Fix dark mode colors being used for alert icons in light mode.

The ternary operator here was backwards, with light mode colors being used
when the system is in dark mode, and vice versa.

Change-Id: Id6788f601a4cd741fb6ddce6ebe1aeb8fb44f1eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1933386
Auto-Submit: Daniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718800}
parent 7fa7c935
......@@ -295,8 +295,8 @@ SkColor SkColorFromColorId(ui::NativeTheme::ColorId color_id) {
// theme should be used.
ui::NativeTheme* fallback_theme =
color_utils::IsDark(GetBgColor(""))
? ui::NativeTheme::GetInstanceForNativeUi()
: ui::NativeThemeDarkAura::instance();
? ui::NativeThemeDarkAura::instance()
: ui::NativeTheme::GetInstanceForNativeUi();
return fallback_theme->GetSystemColor(color_id);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment