Commit d6a88e19 authored by siyua's avatar siyua Committed by Commit Bot

[Autofill Auth UI] Change progress bar color in the Webauthn dialogs.

Currently uses default foreground color and transparent background color.

Uploaded screenshot in bug comment 25

Bug: 991037
Change-Id: Ic9a9899badaad7e06a94854f216ba4bfc26a238a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1861047
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: default avatarMartin Kreichgauer <martinkr@google.com>
Cr-Commit-Position: refs/heads/master@{#707450}
parent 446206e0
...@@ -28,10 +28,8 @@ namespace { ...@@ -28,10 +28,8 @@ namespace {
// Fixed height of the illustration shown in the top half of the sheet. // Fixed height of the illustration shown in the top half of the sheet.
constexpr int kIllustrationHeight = 148; constexpr int kIllustrationHeight = 148;
// Foreground/background color, and the height of the progress bar style // Height of the progress bar style activity indicator shown at the top of some
// activity indicator shown at the top of some sheets. // sheets.
constexpr SkColor kActivityIndicateFgColor = SkColorSetRGB(0xf2, 0x99, 0x00);
constexpr SkColor kActivityIndicateBkColor = SkColorSetRGB(0xf6, 0xe6, 0xc8);
constexpr int kActivityIndicatorHeight = 4; constexpr int kActivityIndicatorHeight = 4;
using ImageColorScheme = AuthenticatorRequestSheetModel::ImageColorScheme; using ImageColorScheme = AuthenticatorRequestSheetModel::ImageColorScheme;
...@@ -100,8 +98,7 @@ AuthenticatorRequestSheetView::CreateIllustrationWithOverlays() { ...@@ -100,8 +98,7 @@ AuthenticatorRequestSheetView::CreateIllustrationWithOverlays() {
auto activity_indicator = std::make_unique<views::ProgressBar>( auto activity_indicator = std::make_unique<views::ProgressBar>(
kActivityIndicatorHeight, false /* allow_round_corner */); kActivityIndicatorHeight, false /* allow_round_corner */);
activity_indicator->SetValue(-1 /* inifinite animation */); activity_indicator->SetValue(-1 /* inifinite animation */);
activity_indicator->SetForegroundColor(kActivityIndicateFgColor); activity_indicator->SetBackgroundColor(SK_ColorTRANSPARENT);
activity_indicator->SetBackgroundColor(kActivityIndicateBkColor);
activity_indicator->SetPreferredSize( activity_indicator->SetPreferredSize(
gfx::Size(illustration_width, kActivityIndicatorHeight)); gfx::Size(illustration_width, kActivityIndicatorHeight));
activity_indicator->SizeToPreferredSize(); activity_indicator->SizeToPreferredSize();
......
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