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

Side by Side Diff: ui/native_theme/native_theme_win.cc

Issue 2961223002: Rename native theme color constants relating to text on dialog buttons
Patch Set: rebase Created 3 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 unified diff | Download patch
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/native_theme/native_theme_win.h" 5 #include "ui/native_theme/native_theme_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <uxtheme.h> 9 #include <uxtheme.h>
10 #include <vsstyle.h> 10 #include <vsstyle.h>
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 color_utils::InvertColor(kDialogBackgroundColor) : 462 color_utils::InvertColor(kDialogBackgroundColor) :
463 kDialogBackgroundColor; 463 kDialogBackgroundColor;
464 464
465 // FocusableBorder 465 // FocusableBorder
466 case kColorId_FocusedBorderColor: 466 case kColorId_FocusedBorderColor:
467 return kFocusedBorderColor; 467 return kFocusedBorderColor;
468 case kColorId_UnfocusedBorderColor: 468 case kColorId_UnfocusedBorderColor:
469 return kUnfocusedBorderColor; 469 return kUnfocusedBorderColor;
470 470
471 // Button 471 // Button
472 case kColorId_ButtonEnabledColor: 472 case kColorId_TextOnEnabledDialogButton:
473 return system_colors_[COLOR_BTNTEXT]; 473 return system_colors_[COLOR_BTNTEXT];
474 case kColorId_ButtonHoverColor: 474 case kColorId_ButtonHoverColor:
475 return kButtonHoverColor; 475 return kButtonHoverColor;
476 476
477 // Label 477 // Label
478 case kColorId_LabelEnabledColor: 478 case kColorId_LabelEnabledColor:
479 return system_colors_[COLOR_BTNTEXT]; 479 return system_colors_[COLOR_BTNTEXT];
480 case kColorId_LabelDisabledColor: 480 case kColorId_LabelDisabledColor:
481 return system_colors_[COLOR_GRAYTEXT]; 481 return system_colors_[COLOR_GRAYTEXT];
482 case kColorId_LabelTextSelectionColor: 482 case kColorId_LabelTextSelectionColor:
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 break; 1977 break;
1978 case LAST: 1978 case LAST:
1979 NOTREACHED(); 1979 NOTREACHED();
1980 break; 1980 break;
1981 } 1981 }
1982 theme_handles_[theme_name] = handle; 1982 theme_handles_[theme_name] = handle;
1983 return handle; 1983 return handle;
1984 } 1984 }
1985 1985
1986 } // namespace ui 1986 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698