Commit 35813374 authored by Takumi Fujimoto's avatar Takumi Fujimoto Committed by Commit Bot

[Cast UI] Specify the correct background color for sink button text

The button text changes its color depending on the background color to
stay legible. This CL specifies the correct background color (that of
ScrollView that the button is contained in) so that the text is rendered
in a legible color.

Bug: 1033670
Change-Id: Ib5c3f15a5e6512a2d259f5fd20dce7fb58ce13a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2008057
Commit-Queue: Takumi Fujimoto <takumif@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732986}
parent 6821dba4
...@@ -183,7 +183,7 @@ void CastDialogSinkButton::OnEnabledChanged() { ...@@ -183,7 +183,7 @@ void CastDialogSinkButton::OnEnabledChanged() {
return; return;
SkColor background_color = GetNativeTheme()->GetSystemColor( SkColor background_color = GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_ProminentButtonColor); ui::NativeTheme::kColorId_DialogBackground);
if (GetEnabled()) { if (GetEnabled()) {
SetTitleTextStyle(views::style::STYLE_PRIMARY, background_color); SetTitleTextStyle(views::style::STYLE_PRIMARY, background_color);
if (saved_status_text_) if (saved_status_text_)
......
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