Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 2108193004: [Material][Mac] Fixed HTTP and HTTPS icons in dark mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: removed extra icon Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index 55f6315a9a3aa5d874a0b3ffb300030958ff6275..3a33eaa5bc326fcdcc56d145facdcab62bc6cd36 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -121,7 +121,9 @@ const SkColor kMaterialDarkVectorIconColor = SK_ColorWHITE;
color:(SkColor)vectorIconColor {
if (vectorIconId != gfx::VectorIconId::LOCATION_BAR_HTTP &&
vectorIconId != gfx::VectorIconId::LOCATION_BAR_HTTPS_INVALID &&
- vectorIconId != gfx::VectorIconId::LOCATION_BAR_HTTPS_VALID) {
+ vectorIconId != gfx::VectorIconId::LOCATION_BAR_HTTPS_VALID &&
+ vectorIconId != gfx::VectorIconId::LOCATION_BAR_HTTPS_INVALID_INVERT &&
+ vectorIconId != gfx::VectorIconId::LOCATION_BAR_HTTPS_VALID_INVERT) {
return NSImageFromImageSkiaWithColorSpace(
gfx::CreateVectorIcon(vectorIconId, kDefaultIconSize, vectorIconColor),
base::mac::GetSRGBColorSpace());
@@ -159,8 +161,10 @@ const SkColor kMaterialDarkVectorIconColor = SK_ColorWHITE;
[self drawLocationBarIconHTTPForScale:scaleFactor];
break;
case gfx::VectorIconId::LOCATION_BAR_HTTPS_INVALID:
+ case gfx::VectorIconId::LOCATION_BAR_HTTPS_INVALID_INVERT:
[self drawLocationBarIconHTTPSInvalidForScale:scaleFactor];
break;
+ case gfx::VectorIconId::LOCATION_BAR_HTTPS_VALID_INVERT:
case gfx::VectorIconId::LOCATION_BAR_HTTPS_VALID:
[self drawLocationBarIconHTTPSValidForScale:scaleFactor];
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698