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

Unified Diff: ios/chrome/browser/ui/material_components/activity_indicator.mm

Issue 2590473002: Upstream Chrome on iOS source code [5/11]. (Closed)
Patch Set: Created 4 years 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
Index: ios/chrome/browser/ui/material_components/activity_indicator.mm
diff --git a/ios/chrome/browser/ui/material_components/activity_indicator.mm b/ios/chrome/browser/ui/material_components/activity_indicator.mm
new file mode 100644
index 0000000000000000000000000000000000000000..fc6487467acd23282a38eab99ef300bb4daaab6e
--- /dev/null
+++ b/ios/chrome/browser/ui/material_components/activity_indicator.mm
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ios/chrome/browser/ui/material_components/activity_indicator.h"
+
+#import "ios/chrome/browser/ui/colors/MDCPalette+CrAdditions.h"
+#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.h"
+
+NSArray* ActivityIndicatorBrandedCycleColors() {
+#if defined(GOOGLE_CHROME_BUILD)
+ return @[
+ [[MDCPalette cr_bluePalette] tint500], [[MDCPalette cr_redPalette] tint500],
+ [[MDCPalette cr_yellowPalette] tint500],
+ [[MDCPalette cr_greenPalette] tint500]
+ ];
+#else
+ return @[
+ [MDCPalette bluePalette].tint800,
+ [MDCPalette bluePalette].tint500,
+ [MDCPalette bluePalette].tint200,
+ ];
+#endif
+}

Powered by Google App Engine
This is Rietveld 408576698