Commit 5ea927a5 authored by gogerald's avatar gogerald Committed by Commit Bot

[Payment] Update progress bar color in opened payment handler window

Bug: 840803
Change-Id: I73adf2f8279ba491200cd027e29a493b45d6590d
Reviewed-on: https://chromium-review.googlesource.com/1060602
Commit-Queue: Mathieu Perreault <mathp@chromium.org>
Reviewed-by: default avatarMathieu Perreault <mathp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559118}
parent 3309e8eb
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "content/public/browser/render_process_host.h" #include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h" #include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/image/image_skia.h" #include "ui/gfx/image/image_skia.h"
#include "ui/views/background.h" #include "ui/views/background.h"
#include "ui/views/border.h" #include "ui/views/border.h"
...@@ -139,6 +140,8 @@ PaymentHandlerWebFlowViewController::PaymentHandlerWebFlowViewController( ...@@ -139,6 +140,8 @@ PaymentHandlerWebFlowViewController::PaymentHandlerWebFlowViewController(
first_navigation_complete_callback_( first_navigation_complete_callback_(
std::move(first_navigation_complete_callback)) { std::move(first_navigation_complete_callback)) {
progress_bar_->set_owned_by_client(); progress_bar_->set_owned_by_client();
progress_bar_->set_foreground_color(gfx::kGoogleBlue500);
progress_bar_->set_background_color(SK_ColorTRANSPARENT);
separator_->set_owned_by_client(); separator_->set_owned_by_client();
separator_->SetColor(separator_->GetNativeTheme()->GetSystemColor( separator_->SetColor(separator_->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_SeparatorColor)); ui::NativeTheme::kColorId_SeparatorColor));
......
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