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

Unified Diff: sky/sdk/lib/framework/components2/radio.dart

Issue 1171543002: Use an enum for Dart bindings for Skia Paint style (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/engine/core/painting/PaintingStyle.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/radio.dart
diff --git a/sky/sdk/lib/framework/components2/radio.dart b/sky/sdk/lib/framework/components2/radio.dart
index 33d4fb2e26c54d174e95f01fbed120d93c586dc6..35aebacc31c1edeeaff19532c0463e4fac395211 100644
--- a/sky/sdk/lib/framework/components2/radio.dart
+++ b/sky/sdk/lib/framework/components2/radio.dart
@@ -41,13 +41,13 @@ class Radio extends ButtonBase {
sky.Paint paint = new sky.Paint()..color = color;
// Draw the outer circle
- paint.style = 1; // SkPaint::STROKE_STYLE;
+ paint.setStyle(sky.PaintingStyle.stroke);
paint.strokeWidth = 2.0;
canvas.drawCircle(outerRadius, outerRadius, outerRadius, paint);
// Draw the inner circle
if (value == groupValue) {
- paint.style = 0; // SkPaint::FILL_STYLE;
+ paint.setStyle(sky.PaintingStyle.fill);
canvas.drawCircle(outerRadius, outerRadius, innerRadius, paint);
}
}
« no previous file with comments | « sky/engine/core/painting/PaintingStyle.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698