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

Unified Diff: sky/sdk/example/game/main.dart

Issue 1225103009: Fix Asteroids game to paint again and give it an icon. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/example/game/main.dart
diff --git a/sky/sdk/example/game/main.dart b/sky/sdk/example/game/main.dart
index f5e2de9fe94b47e71ad37e8bf0c40886563d51f1..eb74fac46701307d7418173e2247a3a438e381f3 100644
--- a/sky/sdk/example/game/main.dart
+++ b/sky/sdk/example/game/main.dart
@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import 'package:sky/mojo/activity.dart' as activity;
import 'package:sky/mojo/asset_bundle.dart';
+import 'package:sky/theme/colors.dart' as colors;
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/widget.dart';
@@ -34,6 +36,8 @@ main() async {
_spriteSheet = new SpriteSheet(_loader['assets/sprites.png'], json);
_app = new GameDemoApp();
+ // TODO(viktork): This task bar color is the wrong purple.
+ activity.updateTaskDescription('Asteroids', colors.Purple[500]);
abarth-chromium 2015/07/10 20:24:54 Why not use a widget in the GameDemoApp?
runApp(_app);
}

Powered by Google App Engine
This is Rietveld 408576698