diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-06 18:49:30 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-06 18:49:30 +0000 |
commit | 16376a11fa3f4a99bf7ed6aa28c70f66041afe46 (patch) | |
tree | dedce639d69eed5f7588a22d1b797f071d0c8ad8 /chrome/browser/gtk/find_bar_gtk.cc | |
parent | afcd90c6fd2bca23b77766099dd92d9b73bd8723 (diff) | |
download | chromium_src-16376a11fa3f4a99bf7ed6aa28c70f66041afe46.zip chromium_src-16376a11fa3f4a99bf7ed6aa28c70f66041afe46.tar.gz chromium_src-16376a11fa3f4a99bf7ed6aa28c70f66041afe46.tar.bz2 |
GTK: Improve look of find in page failure label.
BUG=http://crbug.com/15874
TEST=looks good
Review URL: http://codereview.chromium.org/155041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/find_bar_gtk.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.cc b/chrome/browser/gtk/find_bar_gtk.cc index 54fe240..99ab85e 100644 --- a/chrome/browser/gtk/find_bar_gtk.cc +++ b/chrome/browser/gtk/find_bar_gtk.cc @@ -193,11 +193,17 @@ void FindBarGtk::InitWidgets() { gtk_widget_modify_text(text_entry_, GTK_STATE_NORMAL, &kEntryTextColor); match_count_label_ = gtk_label_new(NULL); + // This line adds padding on the sides so that the label has even padding on + // all edges. + gtk_misc_set_padding(GTK_MISC(match_count_label_), 2, 0); + // This line makes sure the baseline of the label text matches the baseline of + // the entry text. + gtk_misc_set_alignment(GTK_MISC(match_count_label_), 0.5, 1.0); match_count_event_box_ = gtk_event_box_new(); GtkWidget* match_count_centerer = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(match_count_centerer), match_count_event_box_, TRUE, TRUE, 0); - gtk_container_set_border_width(GTK_CONTAINER(match_count_centerer), 3); + gtk_container_set_border_width(GTK_CONTAINER(match_count_centerer), 1); gtk_container_add(GTK_CONTAINER(match_count_event_box_), match_count_label_); UpdateMatchLabelAppearance(false); |