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

Unified Diff: sky/sdk/lib/widgets/tool_bar.dart

Issue 1194743003: Add a new Theme widget to control color and text color of apps (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase 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 | « sky/sdk/lib/widgets/theme.dart ('k') | sky/sdk/lib/widgets/widget.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/tool_bar.dart
diff --git a/sky/sdk/lib/widgets/tool_bar.dart b/sky/sdk/lib/widgets/tool_bar.dart
index 8bd377308e74109fb6949a0b6907f10f0f157117..8fc2c7c04d52ea2f8b4e71771b3a03a970326407 100644
--- a/sky/sdk/lib/widgets/tool_bar.dart
+++ b/sky/sdk/lib/widgets/tool_bar.dart
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import 'package:sky/widgets/theme.dart';
+
import '../rendering/flex.dart';
import '../theme/shadows.dart';
import '../theme/view_configuration.dart';
@@ -48,7 +50,7 @@ class ToolBar extends Component {
),
padding: new EdgeDims.symmetric(horizontal: 8.0),
decoration: new BoxDecoration(
- backgroundColor: backgroundColor,
+ backgroundColor: backgroundColor == null ? Theme.of(this).color[500] : backgroundColor,
boxShadow: shadows[2]
)
);
« no previous file with comments | « sky/sdk/lib/widgets/theme.dart ('k') | sky/sdk/lib/widgets/widget.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698