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

Unified Diff: ui/native_theme/native_theme_dark_aura.cc

Issue 2413223003: Views:: Make Labels support text selection. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_dark_aura.cc
diff --git a/ui/native_theme/native_theme_dark_aura.cc b/ui/native_theme/native_theme_dark_aura.cc
index 35906316913e053ed0b704a33ed163b7de221db8..27ee73ffb3c6c07c0083240c730c7563c0eb324f 100644
--- a/ui/native_theme/native_theme_dark_aura.cc
+++ b/ui/native_theme/native_theme_dark_aura.cc
@@ -21,7 +21,7 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
static const SkColor kTextfieldDefaultColor = SK_ColorWHITE;
static const SkColor kTextfieldDefaultBackground =
SkColorSetRGB(0x62, 0x62, 0x62);
- static const SkColor kTextfieldSelectionBackgroundFocused =
+ static const SkColor kTextSelectionBackgroundFocused =
SkColorSetA(gfx::kGoogleBlue700, 0xCC);
static const SkColor kResultsTableNormalBackground =
@@ -45,7 +45,10 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
// Label
case kColorId_LabelEnabledColor:
+ case kColorId_LabelTextSelectionColor:
return kPrimaryTextColor;
+ case kColorId_LabelTextSelectionBackgroundFocused:
+ return kTextSelectionBackgroundFocused;
// Link
case kColorId_LinkEnabled:
@@ -59,7 +62,7 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
case kColorId_TextfieldDefaultBackground:
return kTextfieldDefaultBackground;
case kColorId_TextfieldSelectionBackgroundFocused:
- return kTextfieldSelectionBackgroundFocused;
+ return kTextSelectionBackgroundFocused;
// Results Tables
case kColorId_ResultsTableNormalBackground:
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698