Closed
Bug 717476
Opened 13 years ago
Closed 13 years ago
[10.7] on background windows: background of bookmark toolbar is visibly darker than the main toolbar
Categories
(Camino Graveyard :: OS Integration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: phiw2, Assigned: alqahira)
References
Details
(Whiteboard: [camino-2.1.1])
Attachments
(6 files, 1 obsolete file)
141.72 KB,
image/png
|
Details | |
35.42 KB,
image/png
|
Details | |
2.86 KB,
patch
|
stuart.morgan+bugzilla
:
superreview+
phiw2
:
feedback+
|
Details | Diff | Splinter Review |
38.34 KB,
image/png
|
Details | |
74.37 KB,
image/png
|
Details | |
113.04 KB,
image/png
|
Details |
The bookmark bar doesn't change colors, whereas the main toolbar becomes much lighter.
main toolbar - bottom pixel color value:
foreground window: 185~187
background window: 224~226
(those backgrounds have a grainy texture)
The colors of the gradient in the bookmark bar are hardcoded (top to bottom : 217 - 196 according to digital color meter)
![]() |
Reporter | |
Comment 1•13 years ago
|
||
As a reference, a Mail window in the background.
Mail uses a gradient that goes from top of the titlebar to the bottom of the 'bookmark' toolbar
Assignee | ||
Comment 2•13 years ago
|
||
BookmarkToolbar's drawBackgroundInRect: will need to be rearchitected slightly to handle 10.7 && !isMainWindow separately. Shouldn't be too difficult, though, just a bit of a pain refactoring.
http://mxr.mozilla.org/camino/source/camino/src/bookmarks/BookmarkToolbar.mm#166
Flags: camino2.1.1?
Assignee | ||
Comment 3•13 years ago
|
||
Actually, the refactoring doesn't seem like it was that much of a pain after all; the pain is just unrelated in my head.
This patch uses values philippe sampled from Safari and Mail.
Assignee | ||
Comment 4•13 years ago
|
||
Note to self: don't write patches with a headache.
Attachment #587931 -
Attachment is obsolete: true
Attachment #587931 -
Flags: feedback?(phiw)
Attachment #587933 -
Flags: feedback?(phiw)
![]() |
Reporter | |
Comment 5•13 years ago
|
||
Comment on attachment 587933 [details] [diff] [review]
Draw a lighter gradient for non-main windows on 10.7, v1.1
This builds correctly and looks good on 10.7.
Attachment #587933 -
Flags: feedback?(phiw) → feedback+
![]() |
Reporter | |
Comment 6•13 years ago
|
||
Default bookmark bar, background window
![]() |
Reporter | |
Comment 7•13 years ago
|
||
multiple rows of bookmarks, assorted favicons, background window
![]() |
Reporter | |
Comment 8•13 years ago
|
||
2 windows overlapping
Comment 9•13 years ago
|
||
Comment on attachment 587933 [details] [diff] [review]
Draw a lighter gradient for non-main windows on 10.7, v1.1
>+#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_6
>+ return YES;
>+#else
This will almost certainly break the build on older machines; Apple doesn't (or at least hasn't in the past) pre-declared versions that don't exist yet, so this probably only builds on 10.6+. We'll have to leave out the short-circuit until older build configs are not supported.
Assignee | ||
Updated•13 years ago
|
Attachment #587933 -
Flags: superreview?(stuart.morgan+bugzilla)
Comment 10•13 years ago
|
||
Comment on attachment 587933 [details] [diff] [review]
Draw a lighter gradient for non-main windows on 10.7, v1.1
sr=smorgan other than that.
Attachment #587933 -
Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to Stuart Morgan from comment #9)
> >+#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_6
> >+ return YES;
> >+#else
>
> This will almost certainly break the build on older machines; Apple doesn't
> (or at least hasn't in the past) pre-declared versions that don't exist yet,
> so this probably only builds on 10.6+. We'll have to leave out the
> short-circuit until older build configs are not supported.
Er, sorry, Bugzilla didn't warn me that you'd commented when I asked for sr.
I did wonder about that, but the patch does build for me on 10.5--I made several typos on the way to getting it right! Also, +isLeopardOrHigher does the exact same thing, but I guess it happens to use the MAC_OS_X_VERSION_ of the lowest supported build host OS.
However, +isTigerOrHigher (bug 314602 / http://hg.mozilla.org/camino/rev/649a098446ca) dated from the 1.0.x era, and I know we could still build on 10.3 way back then!
So based on that, I *think* we're OK. I can land it as-is and remove the short-circuit if anything burns, though.
Comment 12•13 years ago
|
||
Hm, weird. I know I've run into cases where, e.g., we had to use
> VERSION_10_(x-1)
instead of
>= VERSION_10_x
because the latter wouldn't compile on older toolchains.
Assignee | ||
Comment 13•13 years ago
|
||
http://hg.mozilla.org/camino/rev/3046212f6847 as-is; builds succeeded on all four tinderboxen.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Flags: camino2.1.1? → camino2.1.1+
Whiteboard: [camino-2.1.1]
You need to log in
before you can comment on or make changes to this bug.
Description
•