From d09b0922f3831944386850682b584e4dccf60357 Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Mon, 8 Jun 2009 20:56:19 +0000 Subject: Move GTK spacing constants into chrome/common/gtk_util.h BUG=11507 Review URL: http://codereview.chromium.org/118399 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17894 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/gtk_util.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'chrome/common/gtk_util.h') diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index d9827d82..5e5a275 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -25,6 +25,24 @@ WindowOpenDisposition DispositionFromEventFlags(guint state); namespace gtk_util { +// Constants relating to the layout of dialog windows: +// (See http://library.gnome.org/devel/hig-book/stable/design-window.html.en) + +// Spacing between controls of the same group. +const int kControlSpacing = 6; + +// Horizontal spacing between a label and its control. +const int kLabelSpacing = 12; + +// Indent of the controls within each group. +const int kGroupIndent = 12; + +// Space around the outsides of a dialog's contents. +const int kContentAreaBorder = 12; + +// Spacing between groups of controls. +const int kContentAreaSpacing = 18; + // Create a GtkBin with |child| as its child widget. This bin will paint a // border of color |color| with the sizes specified in pixels. GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, -- cgit v1.1