diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 04:36:20 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 04:36:20 +0000 |
commit | 84a860d5da29aeb8b6229bb220f544505607a791 (patch) | |
tree | 98e7bec6e75cc0cba881a6cc7411a941ee4e5cf6 | |
parent | 69cefe5a49b26986323632736c8c898627dd33a0 (diff) | |
download | chromium_src-84a860d5da29aeb8b6229bb220f544505607a791.zip chromium_src-84a860d5da29aeb8b6229bb220f544505607a791.tar.gz chromium_src-84a860d5da29aeb8b6229bb220f544505607a791.tar.bz2 |
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
-rwxr-xr-x | chrome/app/theme/newtab2.png | bin | 0 -> 4405 bytes | |||
-rw-r--r-- | chrome/app/theme/theme_resources.grd | 1 | ||||
-rwxr-xr-x | chrome/browser/gtk/tabs/tab_strip_gtk.cc | 8 |
3 files changed, 9 insertions, 0 deletions
diff --git a/chrome/app/theme/newtab2.png b/chrome/app/theme/newtab2.png Binary files differnew file mode 100755 index 0000000..58a5963 --- /dev/null +++ b/chrome/app/theme/newtab2.png 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); |