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

Unified Diff: sky/sdk/example/stocks/lib/main.dart

Issue 1218153005: Refactoring to support dark theme better (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix import issues 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
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/example/stocks/lib/stock_home.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/stocks/lib/main.dart
diff --git a/sky/sdk/example/stocks/lib/main.dart b/sky/sdk/example/stocks/lib/main.dart
index 8cf2f815e157391919207f3f7c1798b7ca142d29..b358f722c9e42deb53325f0e3271d5626f8f0210 100644
--- a/sky/sdk/example/stocks/lib/main.dart
+++ b/sky/sdk/example/stocks/lib/main.dart
@@ -68,15 +68,15 @@ class StocksApp extends App {
ThemeData theme;
if (optimismSetting == StockMode.optimistic) {
- theme = new ThemeData.light(
- primary: colors.Purple,
- accent: colors.RedAccent,
- darkToolbar: true
+ theme = new ThemeData(
+ brightness: ThemeBrightness.light,
+ primarySwatch: colors.Purple,
+ accentColor: colors.RedAccent[200]
);
} else {
- theme = new ThemeData.dark(
- primary: colors.Red,
- accent: colors.PurpleAccent
+ theme = new ThemeData(
+ brightness: ThemeBrightness.dark,
+ accentColor: colors.RedAccent[200]
);
}
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/example/stocks/lib/stock_home.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698