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

Unified Diff: chrome/browser/gtk/download_shelf_gtk.cc

Issue 43077: Add a GDK_COLOR_RGB macro for constructing GdkColors. (Closed)
Patch Set: Merge to trunk Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/download_shelf_gtk.cc
diff --git a/chrome/browser/gtk/download_shelf_gtk.cc b/chrome/browser/gtk/download_shelf_gtk.cc
index 759a3fd390bf5aaea20c54c14d4d0b56271f2afc..38c5227572d6951c7de8a6636ecda80be9b52236 100644
--- a/chrome/browser/gtk/download_shelf_gtk.cc
+++ b/chrome/browser/gtk/download_shelf_gtk.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/gtk/download_shelf_gtk.h"
+#include "base/gfx/gtk_util.h"
#include "base/logging.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/gtk/custom_button.h"
@@ -34,10 +35,10 @@ const int kLeftPadding = 2;
const int kRightPadding = 10;
// The background color of the shelf.
-static GdkColor kBackgroundColor = { 0, 230 * 257, 237 * 257, 244 * 257 };
+static GdkColor kBackgroundColor = GDK_COLOR_RGB(230, 237, 244);
// Border color (the top pixel of the shelf).
-static GdkColor kBorderColor = { 0, 214 * 257, 214 * 257, 214 * 257 };
+static GdkColor kBorderColor = GDK_COLOR_RGB(214, 214, 214);
const char* kLinkMarkup =
"<u><span color=\"blue\">%s</span></u>";
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_popup_view_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698