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

Unified Diff: sky/sdk/lib/theme/theme_data.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/BUILD.gn ('k') | sky/sdk/lib/theme/typography.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/theme/theme_data.dart
diff --git a/base/test/malloc_wrapper.cc b/sky/sdk/lib/theme/theme_data.dart
similarity index 50%
copy from base/test/malloc_wrapper.cc
copy to sky/sdk/lib/theme/theme_data.dart
index eb280a3eeea52f49e534c7c5e3f6f7a40e80a750..f5873978d49ff311f1c059d6dbd377a6f9021b30 100644
--- a/base/test/malloc_wrapper.cc
+++ b/sky/sdk/lib/theme/theme_data.dart
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "malloc_wrapper.h"
+import 'dart:sky';
-#include <stdlib.h>
+import 'typography.dart';
-void* MallocWrapper(size_t size) {
- return malloc(size);
+class ThemeData {
+ const ThemeData({ this.text, this.color });
+ final TextTheme text;
+ final Map<int, Color> color;
}
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/lib/theme/typography.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698