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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 2413223003: Views:: Make Labels support text selection. (Closed)
Patch Set: Cleanup. More tests. 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
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index 674352c4a22f553e26c974d337371fb0efd907dc..8f6780c58ec8bc3a575000d4437b913adfa11969 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -549,6 +549,10 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
return system_colors_[COLOR_BTNTEXT];
case kColorId_LabelDisabledColor:
return system_colors_[COLOR_GRAYTEXT];
+ case kColorId_LabelTextSelectionColor:
+ return system_colors_[COLOR_HIGHLIGHTTEXT];
+ case kColorId_LabelTextSelectionBackgroundFocused:
+ return system_colors_[COLOR_HIGHLIGHT];
// Textfield
case kColorId_TextfieldDefaultColor:

Powered by Google App Engine
This is Rietveld 408576698