From e9205d0f189346170e0b5c9bf43a757c4b373953 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Fri, 24 Feb 2012 01:34:35 +0000 Subject: gtk: Factor gray color into a constant and place it into a common location. So it can be shared, instead of being duplicated everywhere. R=erg@chromium.org Review URL: https://chromiumcodereview.appspot.com/9442036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123393 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/base/gtk/gtk_hig_constants.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui/base/gtk') diff --git a/ui/base/gtk/gtk_hig_constants.h b/ui/base/gtk/gtk_hig_constants.h index 96694c4..a2827fe 100644 --- a/ui/base/gtk/gtk_hig_constants.h +++ b/ui/base/gtk/gtk_hig_constants.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // @@ -26,9 +26,10 @@ namespace ui { // Multiply uint8 color components by this. const int kSkiaToGDKMultiplier = 257; -// Named color constants. -const GdkColor kGdkWhite = GDK_COLOR_RGB(0xff, 0xff, 0xff); +// Common color constants. +const GdkColor kGdkWhite = GDK_COLOR_RGB(0xFF, 0xFF, 0xFF); const GdkColor kGdkBlack = GDK_COLOR_RGB(0x00, 0x00, 0x00); +const GdkColor kGdkGray = GDK_COLOR_RGB(0x7F, 0x7F, 0x7F); // Constants relating to the layout of dialog windows: // (See http://library.gnome.org/devel/hig-book/stable/design-window.html.en) @@ -53,5 +54,4 @@ const int kFormControlSpacing = 10; } // namespace ui - #endif // UI_BASE_GTK_GTK_HIG_CONSTANTS_H_ -- cgit v1.1