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

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

Issue 12096094: Finalizing the 'OnClick' behavior of the Launcher items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Corrected Windows Created 7 years, 10 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const SkColor kUnfocusedBorderColor = SkColorSetRGB(0xd9, 0xd9, 0xd9); 45 const SkColor kUnfocusedBorderColor = SkColorSetRGB(0xd9, 0xd9, 0xd9);
46 // TextButton: 46 // TextButton:
47 const SkColor kTextButtonBackgroundColor = SkColorSetRGB(0xde, 0xde, 0xde); 47 const SkColor kTextButtonBackgroundColor = SkColorSetRGB(0xde, 0xde, 0xde);
48 const SkColor kTextButtonHighlightColor = SkColorSetARGB(200, 255, 255, 255); 48 const SkColor kTextButtonHighlightColor = SkColorSetARGB(200, 255, 255, 255);
49 const SkColor kTextButtonHoverColor = SkColorSetRGB(6, 45, 117); 49 const SkColor kTextButtonHoverColor = SkColorSetRGB(6, 45, 117);
50 // MenuItem: 50 // MenuItem:
51 const SkColor kEnabledMenuItemForegroundColor = SkColorSetRGB(6, 45, 117); 51 const SkColor kEnabledMenuItemForegroundColor = SkColorSetRGB(6, 45, 117);
52 const SkColor kDisabledMenuItemForegroundColor = SkColorSetRGB(161, 161, 146); 52 const SkColor kDisabledMenuItemForegroundColor = SkColorSetRGB(161, 161, 146);
53 const SkColor kFocusedMenuItemBackgroundColor = SkColorSetRGB(246, 249, 253); 53 const SkColor kFocusedMenuItemBackgroundColor = SkColorSetRGB(246, 249, 253);
54 const SkColor kMenuSeparatorColor = SkColorSetARGB(50, 0, 0, 0); 54 const SkColor kMenuSeparatorColor = SkColorSetARGB(50, 0, 0, 0);
55 const SkColor kSelectedMenuItemBackgroundColor = SkColorSetRGB(203, 219, 241);
56 const SkColor kFocusedSelectedMenuItemBackgroundColor =
57 SkColorSetRGB(193, 211, 236);
55 // Textfield: 58 // Textfield:
56 const SkColor kTextfieldSelectionBackgroundUnfocused = SK_ColorLTGRAY; 59 const SkColor kTextfieldSelectionBackgroundUnfocused = SK_ColorLTGRAY;
57 // Table: 60 // Table:
58 const SkColor kTreeSelectionBackgroundUnfocused = SkColorSetRGB(240, 240, 240); 61 const SkColor kTreeSelectionBackgroundUnfocused = SkColorSetRGB(240, 240, 240);
59 62
60 // Windows system color IDs cached and updated by the native theme. 63 // Windows system color IDs cached and updated by the native theme.
61 const int kSystemColors[] = { 64 const int kSystemColors[] = {
62 COLOR_3DFACE, 65 COLOR_3DFACE,
63 COLOR_BTNTEXT, 66 COLOR_BTNTEXT,
64 COLOR_GRAYTEXT, 67 COLOR_GRAYTEXT,
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 500
498 // MenuItem 501 // MenuItem
499 case kColorId_EnabledMenuItemForegroundColor: 502 case kColorId_EnabledMenuItemForegroundColor:
500 return kEnabledMenuItemForegroundColor; 503 return kEnabledMenuItemForegroundColor;
501 case kColorId_DisabledMenuItemForegroundColor: 504 case kColorId_DisabledMenuItemForegroundColor:
502 return kDisabledMenuItemForegroundColor; 505 return kDisabledMenuItemForegroundColor;
503 case kColorId_FocusedMenuItemBackgroundColor: 506 case kColorId_FocusedMenuItemBackgroundColor:
504 return kFocusedMenuItemBackgroundColor; 507 return kFocusedMenuItemBackgroundColor;
505 case kColorId_MenuSeparatorColor: 508 case kColorId_MenuSeparatorColor:
506 return kMenuSeparatorColor; 509 return kMenuSeparatorColor;
510 case kColorId_SelectedMenuItemBackground:
511 return kSelectedMenuItemBackgroundColor;
512 case kColorId_FocusedSelectedMenuItemBackground:
513 return kFocusedSelectedMenuItemBackgroundColor;
507 514
508 // Label 515 // Label
509 case kColorId_LabelEnabledColor: 516 case kColorId_LabelEnabledColor:
510 return system_colors_[COLOR_BTNTEXT]; 517 return system_colors_[COLOR_BTNTEXT];
511 case kColorId_LabelDisabledColor: 518 case kColorId_LabelDisabledColor:
512 return system_colors_[COLOR_GRAYTEXT]; 519 return system_colors_[COLOR_GRAYTEXT];
513 case kColorId_LabelBackgroundColor: 520 case kColorId_LabelBackgroundColor:
514 return system_colors_[COLOR_WINDOW]; 521 return system_colors_[COLOR_WINDOW];
515 522
516 // Textfield 523 // Textfield
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 handle = open_theme_(NULL, L"Spin"); 2034 handle = open_theme_(NULL, L"Spin");
2028 break; 2035 break;
2029 default: 2036 default:
2030 NOTREACHED(); 2037 NOTREACHED();
2031 } 2038 }
2032 theme_handles_[theme_name] = handle; 2039 theme_handles_[theme_name] = handle;
2033 return handle; 2040 return handle;
2034 } 2041 }
2035 2042
2036 } // namespace ui 2043 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698