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

Unified Diff: chrome/browser/ui/gtk/first_run_bubble.cc

Issue 10918275: [gtk] website settings bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slightly simpler drawing Created 8 years, 3 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
Index: chrome/browser/ui/gtk/first_run_bubble.cc
diff --git a/chrome/browser/ui/gtk/first_run_bubble.cc b/chrome/browser/ui/gtk/first_run_bubble.cc
index 6bccb4344d018d37c45c6dbe5d46113f8b5d9612..a0776b95901f91da03893b1da3df7a254cff94db 100644
--- a/chrome/browser/ui/gtk/first_run_bubble.cc
+++ b/chrome/browser/ui/gtk/first_run_bubble.cc
@@ -19,15 +19,10 @@
#include "ui/base/l10n/l10n_util.h"
namespace {
+
// Markup for the text of the Omnibox search label
const char kSearchLabelMarkup[] = "<big><b>%s</b></big>";
-// Padding between content and edge of bubble.
-const int kContentBorder = 7;
-
-// Vertical spacing between labels.
-const int kInterLineSpacing = 5;
-
} // namespace
// static
@@ -63,12 +58,13 @@ FirstRunBubble::FirstRunBubble(Browser* browser,
GtkWidget* subtext = theme_service->BuildLabel(
l10n_util::GetStringUTF8(IDS_FR_BUBBLE_SUBTEXT), ui::kGdkBlack);
- GtkWidget* top_line = gtk_hbox_new(FALSE, kContentBorder);
+ GtkWidget* top_line = gtk_hbox_new(FALSE, ui::kControlSpacing);
gtk_box_pack_start(GTK_BOX(top_line), title, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(top_line), change, FALSE, FALSE, 0);
- GtkWidget* content = gtk_vbox_new(FALSE, kInterLineSpacing);
- gtk_container_set_border_width(GTK_CONTAINER(content), kContentBorder);
+ GtkWidget* content = gtk_vbox_new(FALSE, ui::kControlSpacing);
+ gtk_container_set_border_width(GTK_CONTAINER(content),
+ ui::kContentAreaBorder);
g_signal_connect(content, "destroy", G_CALLBACK(&HandleDestroyThunk), this);
gtk_box_pack_start(GTK_BOX(content), top_line, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(content), subtext, FALSE, FALSE, 0);
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc ('k') | chrome/browser/ui/gtk/global_error_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698