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

Unified Diff: sky/sdk/lib/framework/theme/colors.dart

Issue 1146913005: Give the Stocks2 App a new improved toolbar. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
Index: sky/sdk/lib/framework/theme/colors.dart
diff --git a/sky/sdk/lib/framework/theme/colors.dart b/sky/sdk/lib/framework/theme/colors.dart
index e7abfbc64564bab590cabbc25ae53a344cec7633..73f2c1974b01d6c453a26a1fe8b907815b1ca87d 100644
--- a/sky/sdk/lib/framework/theme/colors.dart
+++ b/sky/sdk/lib/framework/theme/colors.dart
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import 'dart:sky' as sky;
+
const Map<int, String> Red = const {
50: '#FFEBEE',
100: '#FFCDD2',
@@ -248,3 +250,7 @@ const Map<int, String> BlueGrey = const {
800: '#37474F',
900: '#263238',
};
+
+sky.Color colorFromCSSHexColorString(String colorString) {
+ return new sky.Color(int.parse("FF" + colorString.substring(1), radix: 16));
+}
« sky/sdk/lib/framework/rendering/box.dart ('K') | « sky/sdk/lib/framework/rendering/box.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698