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] |
) |
); |