Commit d57d9c92 authored by Rachel Wong's avatar Rachel Wong Committed by Commit Bot

[privacy view] Use app list color provider for text color.

The text color is currently set to a dark shade of grey. However,
devices with dark launchers can have dark backgrounds and this makes the
dark grey text unreadable. This CL updates the text color to be
determined by the app list color provider instead, which will take into
account the dark or light theme of the launcher.

Bug: 1079169
Change-Id: Ica64fffb6e7f83b1e028088af4649c470c4f36fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437075Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Rachel Wong <wrong@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811889}
parent db835531
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
#include "ash/public/cpp/app_list/app_list_color_provider.h"
#include "base/bind.h" #include "base/bind.h"
#include "ui/accessibility/ax_action_data.h" #include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/ax_enums.mojom.h" #include "ui/accessibility/ax_enums.mojom.h"
...@@ -285,7 +286,7 @@ void PrivacyInfoView::InitText() { ...@@ -285,7 +286,7 @@ void PrivacyInfoView::InitText() {
ax::mojom::Role::kGenericContainer); ax::mojom::Role::kGenericContainer);
views::StyledLabel::RangeStyleInfo style; views::StyledLabel::RangeStyleInfo style;
style.override_color = gfx::kGoogleGrey900; style.override_color = AppListColorProvider::Get()->GetSearchBoxTextColor();
text_view_->AddStyleRange(gfx::Range(0, offset), style); text_view_->AddStyleRange(gfx::Range(0, offset), style);
// Create a custom view for the link portion of the text. This allows an // Create a custom view for the link portion of the text. This allows an
......
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