diff options
Diffstat (limited to 'chrome')
-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); |