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

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

Issue 1241483002: Improve drawer menu items (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 e9be1bb2fe3288a3913d57bcf3813972dba1bede..46a1a6b59c0d9fde8348a7cb5ee5e0199a08cac0 100644
--- a/sky/sdk/lib/theme/theme_data.dart
+++ b/sky/sdk/lib/theme/theme_data.dart
@@ -21,11 +21,13 @@ class ThemeData {
this.primarySwatch = primarySwatch,
primaryColorBrightness = primarySwatch == null ? brightness : ThemeBrightness.dark,
canvasColor = brightness == ThemeBrightness.dark ? colors.Grey[850] : colors.Grey[50],
- cardColor = brightness == ThemeBrightness.dark ? colors.Grey[800] : colors.White,
+ 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,
+ highlightColor = const Color(0x66999999),
+ selectedColor = const Color(0x33999999),
text = brightness == ThemeBrightness.dark ? typography.white : typography.black {
assert(brightness != null);
@@ -56,6 +58,8 @@ class ThemeData {
final Color cardColor;
final Color dividerColor;
final Color hintColor;
+ final Color highlightColor;
+ final Color selectedColor;
final double hintOpacity;
final typography.TextTheme text;

Powered by Google App Engine
This is Rietveld 408576698