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

Unified Diff: sky/sdk/home.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/example/widgets/tabs.dart ('k') | sky/sdk/lib/editing/input.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/home.dart
diff --git a/sky/sdk/home.dart b/sky/sdk/home.dart
index 1968484f545113af6929da20b8765debe1128cc2..1addba1dce2e87d78dbb0f25d6014c5fa1451568 100644
--- a/sky/sdk/home.dart
+++ b/sky/sdk/home.dart
@@ -8,7 +8,6 @@ import 'package:mojom/intents/intents.mojom.dart';
import 'package:sky/mojo/shell.dart' as shell;
import 'package:sky/painting/box_painter.dart';
import 'package:sky/theme/colors.dart' as colors;
-import 'package:sky/theme/edges.dart';
import 'package:sky/theme/typography.dart' as typography;
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/card.dart';
@@ -170,14 +169,14 @@ class DemoList extends FixedHeightScrollable {
class SkyHome extends App {
Widget build() {
return new Theme(
- data: new ThemeData.dark(
- primary: colors.Teal,
- accent: colors.Orange
+ data: new ThemeData(
+ brightness: ThemeBrightness.dark,
+ primarySwatch: colors.Teal
),
child: new Scaffold(
toolbar: new ToolBar(center: new Text('Sky Demos')),
body: new Material(
- edge: MaterialEdge.canvas,
+ type: MaterialType.canvas,
child: new DemoList()
)
)
« no previous file with comments | « sky/sdk/example/widgets/tabs.dart ('k') | sky/sdk/lib/editing/input.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698