| Index: chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc
|
| diff --git a/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc b/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc
|
| index 536bb8dc74979936376e7f506ce5e0d7fc440caa..ea829147fc177abdae78fa92fbd857809d4b7831 100644
|
| --- a/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc
|
| +++ b/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc
|
| @@ -20,8 +20,6 @@ namespace vr_shell {
|
|
|
| namespace {
|
|
|
| -const SkColor kBackgroundColor = 0xCC1A1A1A;
|
| -const SkColor kForegroundColor = SK_ColorWHITE;
|
| constexpr float kBorderFactor = 0.045;
|
| constexpr float kFontSizeFactor = 0.048;
|
| constexpr float kTextWidthFactor = 1.0 - 3 * kBorderFactor;
|
| @@ -40,16 +38,16 @@ void InsecureContentTransientTexture::Draw(SkCanvas* sk_canvas,
|
|
|
| size_.set_width(texture_size.width());
|
| SkPaint paint;
|
| - paint.setColor(kBackgroundColor);
|
| + paint.setColor(color_scheme().transient_warning_background);
|
| auto text =
|
| l10n_util::GetStringUTF16(IDS_PAGE_INFO_INSECURE_WEBVR_CONTENT_TRANSIENT);
|
| gfx::FontList fonts;
|
| GetFontList(size_.width() * kFontSizeFactor, text, &fonts);
|
| gfx::Rect text_size(size_.width() * kTextWidthFactor, 0);
|
|
|
| - std::vector<std::unique_ptr<gfx::RenderText>> lines =
|
| - PrepareDrawStringRect(text, fonts, kForegroundColor, &text_size,
|
| - kTextAlignmentCenter, kWrappingBehaviorWrap);
|
| + std::vector<std::unique_ptr<gfx::RenderText>> lines = PrepareDrawStringRect(
|
| + text, fonts, color_scheme().transient_warning_foreground, &text_size,
|
| + kTextAlignmentCenter, kWrappingBehaviorWrap);
|
|
|
| DCHECK_LE(text_size.height(),
|
| static_cast<int>((1.0 - 2 * kBorderFactor) * size_.width()));
|
|
|