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

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

Issue 235833002: [Mac] Redesign the avatar bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest broken by rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | no next file » | 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 <uxtheme.h> 8 #include <uxtheme.h>
9 #include <vsstyle.h> 9 #include <vsstyle.h>
10 #include <vssym32.h> 10 #include <vssym32.h>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128); 43 const SkColor kInvalidColorIdColor = SkColorSetRGB(255, 0, 128);
44 // Dialogs: 44 // Dialogs:
45 const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251); 45 const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251);
46 // FocusableBorder: 46 // FocusableBorder:
47 const SkColor kFocusedBorderColor = SkColorSetRGB(0x4d, 0x90, 0xfe); 47 const SkColor kFocusedBorderColor = SkColorSetRGB(0x4d, 0x90, 0xfe);
48 const SkColor kUnfocusedBorderColor = SkColorSetRGB(0xd9, 0xd9, 0xd9); 48 const SkColor kUnfocusedBorderColor = SkColorSetRGB(0xd9, 0xd9, 0xd9);
49 // Button: 49 // Button:
50 const SkColor kButtonBackgroundColor = SkColorSetRGB(0xde, 0xde, 0xde); 50 const SkColor kButtonBackgroundColor = SkColorSetRGB(0xde, 0xde, 0xde);
51 const SkColor kButtonHighlightColor = SkColorSetARGB(200, 255, 255, 255); 51 const SkColor kButtonHighlightColor = SkColorSetARGB(200, 255, 255, 255);
52 const SkColor kButtonHoverColor = SkColorSetRGB(6, 45, 117); 52 const SkColor kButtonHoverColor = SkColorSetRGB(6, 45, 117);
53 const SkColor kButtonHoverBackgroundColor = SkColorSetRGB(0xEA, 0xEA, 0xEA);
53 // MenuItem: 54 // MenuItem:
54 const SkColor kEnabledMenuItemForegroundColor = SkColorSetRGB(6, 45, 117); 55 const SkColor kEnabledMenuItemForegroundColor = SkColorSetRGB(6, 45, 117);
55 const SkColor kDisabledMenuItemForegroundColor = SkColorSetRGB(161, 161, 146); 56 const SkColor kDisabledMenuItemForegroundColor = SkColorSetRGB(161, 161, 146);
56 const SkColor kFocusedMenuItemBackgroundColor = SkColorSetRGB(246, 249, 253); 57 const SkColor kFocusedMenuItemBackgroundColor = SkColorSetRGB(246, 249, 253);
57 const SkColor kMenuSeparatorColor = SkColorSetARGB(50, 0, 0, 0); 58 const SkColor kMenuSeparatorColor = SkColorSetARGB(50, 0, 0, 0);
58 // Table: 59 // Table:
59 const SkColor kTreeSelectionBackgroundUnfocused = SkColorSetRGB(240, 240, 240); 60 const SkColor kTreeSelectionBackgroundUnfocused = SkColorSetRGB(240, 240, 240);
60 61
61 // Windows system color IDs cached and updated by the native theme. 62 // Windows system color IDs cached and updated by the native theme.
62 const int kSystemColors[] = { 63 const int kSystemColors[] = {
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 case kColorId_ButtonBackgroundColor: 526 case kColorId_ButtonBackgroundColor:
526 return kButtonBackgroundColor; 527 return kButtonBackgroundColor;
527 case kColorId_ButtonEnabledColor: 528 case kColorId_ButtonEnabledColor:
528 return system_colors_[COLOR_BTNTEXT]; 529 return system_colors_[COLOR_BTNTEXT];
529 case kColorId_ButtonDisabledColor: 530 case kColorId_ButtonDisabledColor:
530 return system_colors_[COLOR_GRAYTEXT]; 531 return system_colors_[COLOR_GRAYTEXT];
531 case kColorId_ButtonHighlightColor: 532 case kColorId_ButtonHighlightColor:
532 return kButtonHighlightColor; 533 return kButtonHighlightColor;
533 case kColorId_ButtonHoverColor: 534 case kColorId_ButtonHoverColor:
534 return kButtonHoverColor; 535 return kButtonHoverColor;
536 case kColorId_ButtonHoverBackgroundColor:
537 return kButtonHoverBackgroundColor;
535 538
536 // MenuItem 539 // MenuItem
537 case kColorId_EnabledMenuItemForegroundColor: 540 case kColorId_EnabledMenuItemForegroundColor:
538 return kEnabledMenuItemForegroundColor; 541 return kEnabledMenuItemForegroundColor;
539 case kColorId_DisabledMenuItemForegroundColor: 542 case kColorId_DisabledMenuItemForegroundColor:
540 return kDisabledMenuItemForegroundColor; 543 return kDisabledMenuItemForegroundColor;
541 case kColorId_DisabledEmphasizedMenuItemForegroundColor: 544 case kColorId_DisabledEmphasizedMenuItemForegroundColor:
542 return SK_ColorBLACK; 545 return SK_ColorBLACK;
543 case kColorId_FocusedMenuItemBackgroundColor: 546 case kColorId_FocusedMenuItemBackgroundColor:
544 return kFocusedMenuItemBackgroundColor; 547 return kFocusedMenuItemBackgroundColor;
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 handle = open_theme_(NULL, L"Spin"); 2153 handle = open_theme_(NULL, L"Spin");
2151 break; 2154 break;
2152 default: 2155 default:
2153 NOTREACHED(); 2156 NOTREACHED();
2154 } 2157 }
2155 theme_handles_[theme_name] = handle; 2158 theme_handles_[theme_name] = handle;
2156 return handle; 2159 return handle;
2157 } 2160 }
2158 2161
2159 } // namespace ui 2162 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698