| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 const SkColor kResultsTableSelectedUrlColor = SK_ColorWHITE; | 486 const SkColor kResultsTableSelectedUrlColor = SK_ColorWHITE; |
| 487 | 487 |
| 488 switch (color_id) { | 488 switch (color_id) { |
| 489 // Windows | 489 // Windows |
| 490 case kColorId_WindowBackground: | 490 case kColorId_WindowBackground: |
| 491 return system_colors_[COLOR_WINDOW]; | 491 return system_colors_[COLOR_WINDOW]; |
| 492 | 492 |
| 493 // Dialogs | 493 // Dialogs |
| 494 case kColorId_DialogBackground: | 494 case kColorId_DialogBackground: |
| 495 case kColorId_BubbleBackground: | 495 case kColorId_BubbleBackground: |
| 496 if (ui::MaterialDesignController::IsSecondaryUiMaterial()) |
| 497 break; |
| 496 return color_utils::IsInvertedColorScheme() ? | 498 return color_utils::IsInvertedColorScheme() ? |
| 497 color_utils::InvertColor(kDialogBackgroundColor) : | 499 color_utils::InvertColor(kDialogBackgroundColor) : |
| 498 kDialogBackgroundColor; | 500 kDialogBackgroundColor; |
| 499 | 501 |
| 500 // FocusableBorder | 502 // FocusableBorder |
| 501 case kColorId_FocusedBorderColor: | 503 case kColorId_FocusedBorderColor: |
| 502 return kFocusedBorderColor; | 504 return kFocusedBorderColor; |
| 503 case kColorId_UnfocusedBorderColor: | 505 case kColorId_UnfocusedBorderColor: |
| 504 return kUnfocusedBorderColor; | 506 return kUnfocusedBorderColor; |
| 505 | 507 |
| (...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2060 break; | 2062 break; |
| 2061 case LAST: | 2063 case LAST: |
| 2062 NOTREACHED(); | 2064 NOTREACHED(); |
| 2063 break; | 2065 break; |
| 2064 } | 2066 } |
| 2065 theme_handles_[theme_name] = handle; | 2067 theme_handles_[theme_name] = handle; |
| 2066 return handle; | 2068 return handle; |
| 2067 } | 2069 } |
| 2068 | 2070 |
| 2069 } // namespace ui | 2071 } // namespace ui |
| OLD | NEW |