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

Side by Side Diff: chrome/browser/ui/libgtkui/native_theme_gtk3.cc

Issue 2682593006: Gtk3: Bugfixes on several themes (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_util.cc ('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 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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:hover"); 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:hover 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(
118 "GtkMenu#menu GtkMenuItem#menuitem GtkLabel#label.accelerator"); 118 "GtkMenu#menu GtkMenuItem#menuitem GtkLabel#label.accelerator");
119 case ui::NativeTheme::kColorId_MenuSeparatorColor: 119 case ui::NativeTheme::kColorId_MenuSeparatorColor:
120 // MenuButton borders are used as vertical menu separators in Chrome. 120 // MenuButton borders are used as vertical menu separators in Chrome.
121 case ui::NativeTheme::kColorId_EnabledMenuButtonBorderColor: 121 case ui::NativeTheme::kColorId_EnabledMenuButtonBorderColor:
122 case ui::NativeTheme::kColorId_FocusedMenuButtonBorderColor: 122 case ui::NativeTheme::kColorId_FocusedMenuButtonBorderColor:
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698