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

Unified Diff: sky/sdk/lib/theme/typography.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/theme/theme_data.dart ('k') | sky/sdk/lib/widgets/checkbox.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/theme/typography.dart
diff --git a/sky/sdk/lib/theme/typography.dart b/sky/sdk/lib/theme/typography.dart
index ffb3e5d95cbce02df902e4c3f1cd1d18d017ad45..1cce6761aab49fb32477a8a8e5ac20e931138d72 100644
--- a/sky/sdk/lib/theme/typography.dart
+++ b/sky/sdk/lib/theme/typography.dart
@@ -10,8 +10,8 @@ import '../painting/text_style.dart';
// TODO(eseidel): Font weights are supposed to be language relative!
// These values are for English-like text.
-class _TextTheme {
- _TextTheme(Color color54, Color color87)
+class TextTheme {
+ TextTheme._(Color color54, Color color87)
: display4 = new TextStyle(fontSize: 112.0, fontWeight: FontWeight.w100, color: color54),
display3 = new TextStyle(fontSize: 56.0, fontWeight: FontWeight.w400, color: color54),
display2 = new TextStyle(fontSize: 45.0, fontWeight: FontWeight.w400, color: color54),
@@ -38,13 +38,13 @@ class _TextTheme {
}
-final _TextTheme black = new _TextTheme(
+final TextTheme black = new TextTheme._(
const Color(0xFF757575),
const Color(0xFF212121)
);
-final _TextTheme white = new _TextTheme(
+final TextTheme white = new TextTheme._(
const Color(0xFF8A8A8A),
const Color(0xFFDEDEDE)
);
« no previous file with comments | « sky/sdk/lib/theme/theme_data.dart ('k') | sky/sdk/lib/widgets/checkbox.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698