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

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

Issue 2694323003: Reuse submenu arrow images for trees (like the edit bookmark tree). (Closed)
Patch Set: remove TreeArrow color 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 | « no previous file | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_gtk2.h" 5 #include "chrome/browser/ui/libgtkui/native_theme_gtk2.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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 case kColorId_TableSelectedText: 256 case kColorId_TableSelectedText:
257 case kColorId_TableSelectedTextUnfocused: 257 case kColorId_TableSelectedTextUnfocused:
258 case kColorId_TreeSelectedText: 258 case kColorId_TreeSelectedText:
259 case kColorId_TreeSelectedTextUnfocused: 259 case kColorId_TreeSelectedTextUnfocused:
260 return GetTextColor(GetTree(), SELECTED); 260 return GetTextColor(GetTree(), SELECTED);
261 case kColorId_TableSelectionBackgroundFocused: 261 case kColorId_TableSelectionBackgroundFocused:
262 case kColorId_TableSelectionBackgroundUnfocused: 262 case kColorId_TableSelectionBackgroundUnfocused:
263 case kColorId_TreeSelectionBackgroundFocused: 263 case kColorId_TreeSelectionBackgroundFocused:
264 case kColorId_TreeSelectionBackgroundUnfocused: 264 case kColorId_TreeSelectionBackgroundUnfocused:
265 return GetBgColor(GetTree(), SELECTED); 265 return GetBgColor(GetTree(), SELECTED);
266 case kColorId_TreeArrow:
267 return GetFgColor(GetTree(), NORMAL);
268 case kColorId_TableGroupingIndicatorColor: 266 case kColorId_TableGroupingIndicatorColor:
269 return GetTextAAColor(GetTree(), NORMAL); 267 return GetTextAAColor(GetTree(), NORMAL);
270 268
271 // Table Headers 269 // Table Headers
272 case kColorId_TableHeaderText: 270 case kColorId_TableHeaderText:
273 return GetTextColor(GetTree(), NORMAL); 271 return GetTextColor(GetTree(), NORMAL);
274 case kColorId_TableHeaderBackground: 272 case kColorId_TableHeaderBackground:
275 return GetBgColor(GetTree(), NORMAL); 273 return GetBgColor(GetTree(), NORMAL);
276 case kColorId_TableHeaderSeparator: 274 case kColorId_TableHeaderSeparator:
277 return GetFgColor(GetSeparator(), INSENSITIVE); 275 return GetFgColor(GetSeparator(), INSENSITIVE);
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 GtkWidget* NativeThemeGtk2::GetSeparator() const { 460 GtkWidget* NativeThemeGtk2::GetSeparator() const {
463 static GtkWidget* fake_separator = NULL; 461 static GtkWidget* fake_separator = NULL;
464 462
465 if (!fake_separator) 463 if (!fake_separator)
466 fake_separator = gtk_hseparator_new(); 464 fake_separator = gtk_hseparator_new();
467 465
468 return fake_separator; 466 return fake_separator;
469 } 467 }
470 468
471 } // namespace libgtkui 469 } // namespace libgtkui
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/native_theme_gtk3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698