OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/browser/ui/libgtkui/native_theme_gtk3.h" | 5 #include "chrome/browser/ui/libgtkui/native_theme_gtk3.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "chrome/browser/ui/libgtkui/chrome_gtk_frame.h" | 9 #include "chrome/browser/ui/libgtkui/chrome_gtk_frame.h" |
10 #include "chrome/browser/ui/libgtkui/chrome_gtk_menu_subclasses.h" | 10 #include "chrome/browser/ui/libgtkui/chrome_gtk_menu_subclasses.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 return GetBorderColor("GtkEntry#entry:focus"); | 97 return GetBorderColor("GtkEntry#entry:focus"); |
98 case ui::NativeTheme::kColorId_UnfocusedBorderColor: | 98 case ui::NativeTheme::kColorId_UnfocusedBorderColor: |
99 return GetBorderColor("GtkEntry#entry"); | 99 return GetBorderColor("GtkEntry#entry"); |
100 | 100 |
101 // Menu | 101 // Menu |
102 case ui::NativeTheme::kColorId_MenuBackgroundColor: | 102 case ui::NativeTheme::kColorId_MenuBackgroundColor: |
103 return GetBgColor("GtkMenu#menu"); | 103 return GetBgColor("GtkMenu#menu"); |
104 case ui::NativeTheme::kColorId_MenuBorderColor: | 104 case ui::NativeTheme::kColorId_MenuBorderColor: |
105 return GetBorderColor("GtkMenu#menu"); | 105 return GetBorderColor("GtkMenu#menu"); |
106 case ui::NativeTheme::kColorId_FocusedMenuItemBackgroundColor: | 106 case ui::NativeTheme::kColorId_FocusedMenuItemBackgroundColor: |
107 return GetBgColor("GtkMenu#menu GtkMenuItem#menuitem:focus"); | 107 return GetBgColor("GtkMenu#menu GtkMenuItem#menuitem:hover"); |
108 case ui::NativeTheme::kColorId_EnabledMenuItemForegroundColor: | 108 case ui::NativeTheme::kColorId_EnabledMenuItemForegroundColor: |
109 return GetFgColor("GtkMenu#menu GtkMenuItem#menuitem GtkLabel#label"); | 109 return GetFgColor("GtkMenu#menu GtkMenuItem#menuitem GtkLabel#label"); |
110 case ui::NativeTheme::kColorId_SelectedMenuItemForegroundColor: | 110 case ui::NativeTheme::kColorId_SelectedMenuItemForegroundColor: |
111 return GetFgColor( | 111 return GetFgColor( |
112 "GtkMenu#menu GtkMenuItem#menuitem:selected GtkLabel#label"); | 112 "GtkMenu#menu GtkMenuItem#menuitem:selected GtkLabel#label"); |
113 case ui::NativeTheme::kColorId_DisabledMenuItemForegroundColor: | 113 case ui::NativeTheme::kColorId_DisabledMenuItemForegroundColor: |
114 return GetFgColor( | 114 return GetFgColor( |
115 "GtkMenu#menu GtkMenuItem#menuitem:disabled GtkLabel#label"); | 115 "GtkMenu#menu GtkMenuItem#menuitem:disabled GtkLabel#label"); |
116 case ui::NativeTheme::kColorId_MenuItemSubtitleColor: | 116 case ui::NativeTheme::kColorId_MenuItemSubtitleColor: |
117 return GetFgColor( | 117 return GetFgColor( |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 if (frame_top_area.incognito) { | 547 if (frame_top_area.incognito) { |
548 bitmap = SkBitmapOperations::CreateHSLShiftedBitmap( | 548 bitmap = SkBitmapOperations::CreateHSLShiftedBitmap( |
549 bitmap, kDefaultTintFrameIncognito); | 549 bitmap, kDefaultTintFrameIncognito); |
550 } | 550 } |
551 | 551 |
552 canvas->drawBitmap(bitmap, rect.x(), rect.y()); | 552 canvas->drawBitmap(bitmap, rect.x(), rect.y()); |
553 } | 553 } |
554 | 554 |
555 } // namespace libgtkui | 555 } // namespace libgtkui |
OLD | NEW |