| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |