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

Unified Diff: sky/sdk/lib/widgets/drawer_header.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/lib/widgets/drawer.dart ('k') | sky/sdk/lib/widgets/floating_action_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/drawer_header.dart
diff --git a/sky/sdk/lib/widgets/drawer_header.dart b/sky/sdk/lib/widgets/drawer_header.dart
index 730055b3db1256ad793d04c7c0a8aae34ea70b2f..6f9b0e82694a47ac16e88ebd3d6f5e129dab8708 100644
--- a/sky/sdk/lib/widgets/drawer_header.dart
+++ b/sky/sdk/lib/widgets/drawer_header.dart
@@ -2,12 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import '../theme/colors.dart';
import '../theme/view_configuration.dart';
import 'basic.dart';
import 'default_text_style.dart';
import 'theme.dart';
+// TODO(jackson): This class should usually render the user's
+// preferred banner image rather than a solid background
+
class DrawerHeader extends Component {
DrawerHeader({ String key, this.children }) : super(key: key);
@@ -18,7 +20,7 @@ class DrawerHeader extends Component {
return new Container(
height: kStatusBarHeight + kMaterialDrawerHeight,
decoration: new BoxDecoration(
- backgroundColor: BlueGrey[50],
+ backgroundColor: Theme.of(this).cardColor,
border: const Border(
bottom: const BorderSide(
color: const Color(0xFFD1D9E1),
« no previous file with comments | « sky/sdk/lib/widgets/drawer.dart ('k') | sky/sdk/lib/widgets/floating_action_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698