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

Unified Diff: sky/engine/core/painting/Color.dart

Issue 1162023004: Update BoxDecoration and RenderParagraph to use sky.Color instead of int. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: test expectations 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
« no previous file with comments | « no previous file | sky/examples/fn2/container.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Color.dart
diff --git a/sky/engine/core/painting/Color.dart b/sky/engine/core/painting/Color.dart
index b88e3b45619e84bac46be5ead6773ac2e3a20fcc..5789e40e653c8e75268699279296a0b9548b5c21 100644
--- a/sky/engine/core/painting/Color.dart
+++ b/sky/engine/core/painting/Color.dart
@@ -15,4 +15,7 @@ class Color {
((g & 0xff) << 8) |
((b & 0xff) << 0));
+ bool operator ==(other) => other is Color && _value == other._value;
+ int get hashCode => _value.hashCode;
+ String toString() => "Color(0x${_value.toRadixString(16).padLeft(8, '0')})";
}
« no previous file with comments | « no previous file | sky/examples/fn2/container.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698