Closed Bug 355323 Opened 18 years ago Closed 17 years ago

Fix followup issues with changing the color of the pop-up blocker bar

Categories

(Camino Graveyard :: Annoyance Blocking, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: alqahira, Assigned: stuart.morgan+bugzilla)

References

Details

(Keywords: fixed1.8.1.3)

Attachments

(6 files, 1 obsolete file)

These are issues identified in the review comments for bug 331331 (which we all agreed would be addressed in a follow-up bug):

* Aqua buttons look out-of-place on the curvy background
* Focus rings are very difficult to see on the dark black background
* The close button's pressed state seems indistinguishable from the hover state
* kreeger apparently landed the wrong version of the new popup_blocked_icon.tif warning icon 
* cvs remove popup-blocked.png

I expect we'll see some feedback about the new color/look soon, too ;)  

We'll also have to deal with the issue of tiling once the blocker is able to wrap properly (bug 341967), so a static image background may not be the best way to go here....
* Aqua buttons look out-of-place on the curvy background

Change to flatter style buttons? Ooh I can hear the sound of air being sucked through teeth! This option was based on the bar that appears in the finder when you have CD or DVD inserted to burn. It does use the more recent aqua style of flatter buttons (http://www.guilford.edu/content/images/admin/helpsheets/its/TigerBurning-6ClickbBurnButtonNoClickScreen.JPG)

However, the issue of the focus ring suggests to me that we should consider another of the options: http://www.hicksdesign.co.uk/clients/camino/PopUpBlocker2.zip

Regarding tiling - can the image be anchored to either center or bottom as in CSS? If so, then all we need to do is create an image that has the background colour at either the top or both top and bottom.

We discussed the issues relating to "Aqua buttons vs. curved glass bg", indistinguishable close button and tiling problems with using images at this morning's meeting. 

We decided we need to implement a lighter gradient (similar to [1], and do so in code, to solve the buttons/tiling issues.  We're also going to go back to using the standard grey close buttons for discoverability and consistency with the rest of the app.

Jon, could you give us the top and bottom color values from that blue gradient? [1]  Also, for ease and to lessen confusion, could you attach the proper popup_blocked_icon.tif here?

[1] http://adggda.com/~ss/camino/mockups/popupblocker2-toned_down_blue.jpg

Flags: camino1.1a1?
Not blocking 1.1a1, but we'd definitely take a patch.
Flags: camino1.1a1? → camino1.1a1-
Code-wise, what we need here is a patch that will draw a gradient for the bar, using the colors from Jon's "toned-down blue", and which doesn't make assumptions about the height of the bar.

This bug is blocking making the bar text wrap properly (bug 341967, which has a patch that's almost ready).
The top of the gradient (lighter colour) is #4471C3 (RGB 68,113,195)

The bottom is #29529E (RGB 41,82,158)

Pop up blocked icon attached!
Taking, as per the 2006-11-18 Status Meeting.  (Thanks kreeger)
Status: NEW → ASSIGNED
Assignee: nobody → camino
Status: ASSIGNED → NEW
Not blocking a2.
Flags: camino1.1b1?
Flags: camino1.1a2?
Flags: camino1.1a2-
Comment on attachment 244876 [details]
Pop up blocked icon (checked in on trunk and MOZILLA_1_8_BRANCH)

cvs removed the old old popup blocked icon and checked the new one in on trunk and MOZILLA_1_8_BRANCH.  Thanks as always, Jon.
Attachment #244876 - Attachment description: Pop up blocked icon → Pop up blocked icon (checked in on trunk and MOZILLA_1_8_BRANCH)
Since we decided to stick with black, and already have the code-gradient, is this bug still tracking anything?
> * The close button's pressed state seems indistinguishable from the hover state

still bothers me, at the very least (I've never been fond of the non-standard colored close button, and Sam or Max and I had a long debate about it in the last month or so).
Ah, I remembered us deciding to use the standard close box several meetings back, so I guess I thought that part was already done. Am I remembering correctly? If so we just need a simple patch.
Sorry folks, please remind me if there are still outstanding things I need to do on this bug
(In reply to comment #11)
> Ah, I remembered us deciding to use the standard close box several meetings
> back, so I guess I thought that part was already done. Am I remembering
> correctly? If so we just need a simple patch.

I have that same recollection (of course), and the 10-04 notes state that (as reflected by comment 2 above).  I went through later logs, and while we re-re-revisited the bar color, we never revisited the close button discussion, so I believe it stands, and we just need a simple patch :)

Jon, I think we're done with you on this bug, and we thank you deeply for your work on the UI and imagery for this feature :D
The close button's rollover behavior is broken at the moment.  The RollerImageButton object enables mouse tracking for itself during its initWithFrame method.  Since the close popup button is already instantiated by Interface Builder, initWithFrame: is never called at runtime.

We can take the default setup code from initWithFrame and break it out into a separate method, and then also call this from awakeFromNib.  The only case where an object receives both initWithFrame and awakeFromNib messages is when a CustomView placeholder is used in Interface Builder.

If changing RolloverImageButton makes sense, I'll fix that and switch these images around to the standard style.
Fixes the issue with RolloverImageButton's mouse tracking being disabled by default when it is instantiated within Interface Builder.  The close button images have been changed to use the lighter tab-style ones.

I attached a composite screenshot of the two styles during each state (normal, hover, pressed) as they look on the popup blocker, for comparison.  I'll admit that I prefer the darker images (the ones we're using now).  The tab style images appear to take on a sort of oval shape when placed on the dark background.   Also, the normal (non-hover or pressed) state of the tab style looks out of place on the blocker, and you can barely make out the "x" on it.

The nib also defines an image/alternateImage, but the setImage:/setAlternateImage: code in BrowserWrapper.mm overrides the images set within IB.  After we decide for certain which images to use I'll submit a new nib to match them, just in case those lines are ever removed from BW.mm.
Attachment #253635 - Flags: review?
Yeah, the grey looks pretty bad. Maybe we should see if we can just make the normal state of a black version stand out more.
Comment on attachment 253635 [details] [diff] [review]
hover fixed + tab style close images

>+- (void)setupDefaults;

This is an internal method; put it in a private category in the implementation file.

>+  mImage = nil;
>+  mHoverImage = nil;

Remove these entirely, as they aren't necessary.

Lets assume for the moment that we won't be using the tab close buttons, so you can leave the image name changes out of the next round.
Attachment #253635 - Flags: review? → review-
(In reply to comment #18)
> This is an internal method; put it in a private category in the implementation
> file.

Duh, sorry I missed that.

> >+  mImage = nil;
> >+  mHoverImage = nil;
> 
> Remove these entirely, as they aren't necessary.

Yeah, instance variables are zeroed out upon allocation, but this was in the original code and I didn't want to remove the lines in case they were there for readability or to explicitly indicate the initial values.

I made some additional style changes in attempt the RolloverImageButton code more consistent with the project.
Attachment #253635 - Attachment is obsolete: true
Attachment #253950 - Flags: review?(stuart.morgan)
Attachment #253950 - Flags: superreview?(mikepinkerton)
Attachment #253950 - Flags: review?(stuart.morgan)
Attachment #253950 - Flags: review+
Comment on attachment 253950 [details] [diff] [review]
hover fix only [checked in]

sr=pink
Attachment #253950 - Flags: superreview?(mikepinkerton) → superreview+
Whiteboard: [needs checkin]
Comment on attachment 253950 [details] [diff] [review]
hover fix only [checked in]

Patch checked in; now we just need to figure out the art.
Attachment #253950 - Attachment description: hover fix only → hover fix only [checked in]
Whiteboard: [needs checkin]
I think that the "distortion" look on the grey close buttons can be fixed with a little pixel-pushing (and I think that both grey or black look better on the blue bar; why is it again that we changed our minds again and decided not to go back to blue like we decided at the meeting in October [comment 4]?)

http://www.ardisson.org/smokey/moz/blue-w-black.png
http://www.ardisson.org/smokey/moz/blue-w-grey.png
(In reply to comment #22)
> why is it again that we changed our minds again and decided not to go
> back to blue like we decided at the meeting in October [comment 4]?)

Blue = good
Popups = bad
I believe my comment at the meeting where we ditched blue was: "If we ever needed a notification bar that said 'This page is totally awesome', the blue would be perfect."
Attached file new button images
New close button images that Cole made for me, with fatter X (and a height matching the buttons it's next to). There was general agreement in channel that this helps the visibility issue.
Attachment #255044 - Flags: superreview?(mark)
Attached file new nib
The nib to go with the above, since the button is now bigger than the frame given to it in the current nib. I also tweaked the horizontal spacing a bit so it doesn't look so off-center.
And lastly, Cole pointed out that the aqua buttons appear to sit too high. Since aqua buttons always look slightly high in their frame, we are better of doing a floor than a ceiling when centering the buttons.
Assignee: camino → stuart.morgan
Status: NEW → ASSIGNED
Attachment #255046 - Flags: superreview?
Attachment #255046 - Flags: superreview? → superreview?(mark)
Attachment #255044 - Flags: superreview?(mark) → superreview+
Attachment #255046 - Flags: superreview?(mark) → superreview+
Checked in on trunk and MOZILLA_1_8_BRANCH.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: fixed1.8.0.10
Resolution: --- → FIXED
Flags: camino1.1b1?
Flags: camino1.1b1+
Flags: camino1.1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: