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

Unified Diff: sky/examples/stocks2/lib/stock_app.dart

Issue 1204523002: Material light and dark themes for Sky widgets (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix analyzer warning properly 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 | « no previous file | sky/examples/stocks2/lib/stock_home.dart » ('j') | sky/sdk/lib/widgets/theme.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks2/lib/stock_app.dart
diff --git a/sky/examples/stocks2/lib/stock_app.dart b/sky/examples/stocks2/lib/stock_app.dart
index 27c15effb6461658fb72d8b2606251270fde998e..7f319ec0c4dfbd9da8766055ddaf57aaacc3c0d1 100644
--- a/sky/examples/stocks2/lib/stock_app.dart
+++ b/sky/examples/stocks2/lib/stock_app.dart
@@ -5,7 +5,6 @@
import 'package:sky/rendering/sky_binding.dart';
import 'package:sky/theme/colors.dart' as colors;
import 'package:sky/theme/theme_data.dart';
-import 'package:sky/theme/typography.dart' as typography;
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/navigator.dart';
import 'package:sky/widgets/theme.dart';
@@ -51,7 +50,10 @@ class StocksApp extends App {
Widget build() {
return new Theme(
- data: new ThemeData(color: colors.Purple, text: typography.white),
+ data: new ThemeData.light(
+ primary: colors.Purple,
+ accent: colors.RedAccent,
+ darkToolbar: true),
child: new Navigator(_navigationState)
);
}
« no previous file with comments | « no previous file | sky/examples/stocks2/lib/stock_home.dart » ('j') | sky/sdk/lib/widgets/theme.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698