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

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

Issue 1262513002: Use vectorized icon for default extensions icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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
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/libgtk2ui/native_theme_gtk2.h" 5 #include "chrome/browser/ui/libgtk2ui/native_theme_gtk2.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h" 9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h"
10 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" 10 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h"
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 case kColorId_ThrobberSpinningColor: 410 case kColorId_ThrobberSpinningColor:
411 case kColorId_ThrobberLightColor: { 411 case kColorId_ThrobberLightColor: {
412 return GetEntryStyle()->bg[GTK_STATE_SELECTED]; 412 return GetEntryStyle()->bg[GTK_STATE_SELECTED];
413 } 413 }
414 414
415 case kColorId_ThrobberWaitingColor: { 415 case kColorId_ThrobberWaitingColor: {
416 return GdkAlphaBlend(GetEntryStyle()->bg[GTK_STATE_SELECTED], 416 return GdkAlphaBlend(GetEntryStyle()->bg[GTK_STATE_SELECTED],
417 GetWindowStyle()->bg[GTK_STATE_NORMAL], 0xff / 2); 417 GetWindowStyle()->bg[GTK_STATE_NORMAL], 0xff / 2);
418 } 418 }
419 419
420 case kColorId_ChromeIconGrey:
420 case kColorId_NumColors: 421 case kColorId_NumColors:
421 NOTREACHED(); 422 NOTREACHED();
422 break; 423 break;
423 } 424 }
424 425
425 return SkColorToGdkColor(kInvalidColorIdColor); 426 return SkColorToGdkColor(kInvalidColorIdColor);
426 } 427 }
427 428
428 GtkWidget* NativeThemeGtk2::GetRealizedWindow() const { 429 GtkWidget* NativeThemeGtk2::GetRealizedWindow() const {
429 if (!fake_window_) { 430 if (!fake_window_) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 0, 0, 531 0, 0,
531 rect.width(), rect.height()); 532 rect.width(), rect.height());
532 SkBitmap arrow = GdkPixbufToImageSkia(pb); 533 SkBitmap arrow = GdkPixbufToImageSkia(pb);
533 canvas->drawBitmap(arrow, rect.x(), rect.y()); 534 canvas->drawBitmap(arrow, rect.x(), rect.y());
534 535
535 g_object_unref(pb); 536 g_object_unref(pb);
536 g_object_unref(pm); 537 g_object_unref(pm);
537 } 538 }
538 539
539 } // namespace libgtk2ui 540 } // namespace libgtk2ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698