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 <uxtheme.h> | 8 #include <uxtheme.h> |
9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
10 #include <vssym32.h> | 10 #include <vssym32.h> |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 const SkColor kPositiveTextColor = SkColorSetRGB(0x0b, 0x80, 0x43); | 475 const SkColor kPositiveTextColor = SkColorSetRGB(0x0b, 0x80, 0x43); |
476 const SkColor kNegativeTextColor = SkColorSetRGB(0xc5, 0x39, 0x29); | 476 const SkColor kNegativeTextColor = SkColorSetRGB(0xc5, 0x39, 0x29); |
477 | 477 |
478 switch (color_id) { | 478 switch (color_id) { |
479 // Windows | 479 // Windows |
480 case kColorId_WindowBackground: | 480 case kColorId_WindowBackground: |
481 return system_colors_[COLOR_WINDOW]; | 481 return system_colors_[COLOR_WINDOW]; |
482 | 482 |
483 // Dialogs | 483 // Dialogs |
484 case kColorId_DialogBackground: | 484 case kColorId_DialogBackground: |
485 return gfx::IsInvertedColorScheme() ? | 485 return color_utils::IsInvertedColorScheme() ? |
486 color_utils::InvertColor(kDialogBackgroundColor) : | 486 color_utils::InvertColor(kDialogBackgroundColor) : |
487 kDialogBackgroundColor; | 487 kDialogBackgroundColor; |
488 | 488 |
489 // FocusableBorder | 489 // FocusableBorder |
490 case kColorId_FocusedBorderColor: | 490 case kColorId_FocusedBorderColor: |
491 return kFocusedBorderColor; | 491 return kFocusedBorderColor; |
492 case kColorId_UnfocusedBorderColor: | 492 case kColorId_UnfocusedBorderColor: |
493 return kUnfocusedBorderColor; | 493 return kUnfocusedBorderColor; |
494 | 494 |
495 // Button | 495 // Button |
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2084 break; | 2084 break; |
2085 case LAST: | 2085 case LAST: |
2086 NOTREACHED(); | 2086 NOTREACHED(); |
2087 break; | 2087 break; |
2088 } | 2088 } |
2089 theme_handles_[theme_name] = handle; | 2089 theme_handles_[theme_name] = handle; |
2090 return handle; | 2090 return handle; |
2091 } | 2091 } |
2092 | 2092 |
2093 } // namespace ui | 2093 } // namespace ui |
OLD | NEW |