From 84a860d5da29aeb8b6229bb220f544505607a791 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 26 Jun 2009 04:36:20 +0000 Subject: Changes the image used for the new tab button. BUG=none TEST=none Review URL: http://codereview.chromium.org/146056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19339 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/theme/newtab2.png | Bin 0 -> 4405 bytes chrome/app/theme/theme_resources.grd | 1 + chrome/browser/gtk/tabs/tab_strip_gtk.cc | 8 ++++++++ 3 files changed, 9 insertions(+) create mode 100755 chrome/app/theme/newtab2.png (limited to 'chrome') diff --git a/chrome/app/theme/newtab2.png b/chrome/app/theme/newtab2.png new file mode 100755 index 0000000..58a5963 Binary files /dev/null and b/chrome/app/theme/newtab2.png differ diff --git a/chrome/app/theme/theme_resources.grd b/chrome/app/theme/theme_resources.grd index 3501fa0..d15b57d 100644 --- a/chrome/app/theme/theme_resources.grd +++ b/chrome/app/theme/theme_resources.grd @@ -318,6 +318,7 @@ <if expr="pp_ifdef('linux2')"> <include name="IDR_NEW_BROWSER_WINDOW_ICON" file="new_browser_window.png" type="BINDATA" /> <include name="IDR_TAB_OVERVIEW_BUTTON_ICON" file="tab_overview.png" type="BINDATA" /> + <include name="IDR_NEWTAB_BUTTON2" file="newtab2.png" type="BINDATA" /> </if> </includes> </release> diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/gtk/tabs/tab_strip_gtk.cc index 20e14ec..4399a3b 100755 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.cc @@ -36,7 +36,11 @@ const int kReorderAnimationDurationMs = 166; const int kAnimateToBoundsDurationMs = 150; const int kNewTabButtonHOffset = -5; +#if defined(LINUX2) +const int kNewTabButtonVOffset = 0; +#else const int kNewTabButtonVOffset = 5; +#endif // The delay between when the mouse leaves the tabstrip and the resize animation // is started. @@ -1562,8 +1566,12 @@ void TabStripGtk::SetTabBounds(TabGtk* tab, const gfx::Rect& bounds) { } CustomDrawButton* TabStripGtk::MakeNewTabButton() { +#if defined(LINUX2) + CustomDrawButton* button = new CustomDrawButton(IDR_NEWTAB_BUTTON2, 0, 0, 0); +#else CustomDrawButton* button = new CustomDrawButton(IDR_NEWTAB_BUTTON, IDR_NEWTAB_BUTTON_P, IDR_NEWTAB_BUTTON_H, 0); +#endif g_signal_connect(G_OBJECT(button->widget()), "clicked", G_CALLBACK(OnNewTabClicked), this); -- cgit v1.1