diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 15:01:23 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-11 15:01:23 +0000 |
commit | 9b0b5b1d9f92505192c1c0a98bbdf3ad70e78842 (patch) | |
tree | 56500538767752092c22aa594efe1cad8e647d6c /chrome/browser/cocoa/browser_frame_view.mm | |
parent | 89b4fbf77e6e36efa7b10adce0f383ecbd00a034 (diff) | |
download | chromium_src-9b0b5b1d9f92505192c1c0a98bbdf3ad70e78842.zip chromium_src-9b0b5b1d9f92505192c1c0a98bbdf3ad70e78842.tar.gz chromium_src-9b0b5b1d9f92505192c1c0a98bbdf3ad70e78842.tar.bz2 |
[Mac] Fixes floating bar pattern drawing.
BUG=31638
TEST=Install the Topography theme. When in fullscreen mode, the background in the tabs should line up with the window background.
Review URL: http://codereview.chromium.org/593041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_frame_view.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_frame_view.mm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/browser_frame_view.mm b/chrome/browser/cocoa/browser_frame_view.mm index ce7aaad..528b2f5 100644 --- a/chrome/browser/cocoa/browser_frame_view.mm +++ b/chrome/browser/cocoa/browser_frame_view.mm @@ -113,9 +113,12 @@ if (color) { // If there is a theme pattern, draw it here. - // To line up the background pattern with the patterns in the tabs the - // background pattern in the window frame need to be moved up by two - // pixels and left by 5. + // The titlebar/tabstrip header on the mac is slightly smaller than on + // Windows. To keep the window background lined up with the tab and toolbar + // patterns, we have to shift the pattern slightly, rather than simply + // drawing it from the top left corner. The offset below was empirically + // determined in order to line these patterns up. + // // This will make the themes look slightly different than in Windows/Linux // because of the differing heights between window top and tab top, but this // has been approved by UI. |