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

Unified Diff: sky/sdk/lib/theme/theme_data.dart

Issue 1234963002: Start an AddressBook example (to test text fields) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
Index: sky/sdk/lib/theme/theme_data.dart
diff --git a/sky/sdk/lib/theme/theme_data.dart b/sky/sdk/lib/theme/theme_data.dart
index 0043ee132bb4b6c3354325f54f1daec5424ddf9a..e9be1bb2fe3288a3913d57bcf3813972dba1bede 100644
--- a/sky/sdk/lib/theme/theme_data.dart
+++ b/sky/sdk/lib/theme/theme_data.dart
@@ -23,6 +23,9 @@ class ThemeData {
canvasColor = brightness == ThemeBrightness.dark ? colors.Grey[850] : colors.Grey[50],
cardColor = brightness == ThemeBrightness.dark ? colors.Grey[800] : colors.White,
dividerColor = brightness == ThemeBrightness.dark ? const Color(0x1FFFFFFF) : const Color(0x1F000000),
+ // Some users want the pre-multiplied color, others just want the opacity.
+ hintColor = brightness == ThemeBrightness.dark ? const Color(0x42FFFFFF) : const Color(0x4C000000),
+ hintOpacity = brightness == ThemeBrightness.dark ? 0.26 : 0.30,
text = brightness == ThemeBrightness.dark ? typography.white : typography.black {
assert(brightness != null);
@@ -52,6 +55,8 @@ class ThemeData {
final Color canvasColor;
final Color cardColor;
final Color dividerColor;
+ final Color hintColor;
+ final double hintOpacity;
final typography.TextTheme text;
Color _primaryColor;

Powered by Google App Engine
This is Rietveld 408576698