Closed Bug 495218 Opened 15 years ago Closed 15 years ago

Update all tabs button on Windows

Categories

(Firefox :: Theme, defect)

3.5 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.5

People

(Reporter: faaborg, Assigned: ehsan.akhgari)

References

Details

(Keywords: verified1.9.1, Whiteboard: [icon-shiretoko][icon-complete])

Attachments

(5 files, 7 obsolete files)

A new drop down glyph for the windows tab strip that matches the arrows and new tab button.
Whiteboard: [icon-shiretoko][icon-complete]
Not entirely sure where we should be checking these in, perhaps /source/browser/themes/winstripe/browser/tabbrowser/

We will be using the same image on the search engine button as well.
Attached image arrow-down.png
The two images seem identical...
aero is a little darker blue on the hit state, normal state is identical
Assignee: nobody → ehsan.akhgari
Status: NEW → ASSIGNED
Attached patch Patch (v1) (obsolete) — Splinter Review
Attachment #380113 - Flags: review?(dao)
If this lands on trunk, as opposed to 1.9.1 it will replace the icon on the 'List all tabs' button for displaying tab previews. Is this intentional & this bug is for Shiretoko only and another icon will be produced for 3.6?
I copies the wrong path in comment 1, meant to suggest that we drop these files into /source/toolkit/themes/winstripe/global/arrow/
Blocks: 495226
Attached patch Patch (v2) (obsolete) — Splinter Review
Updated the location of arrow-down.png based on comment 8.
Attachment #380113 - Attachment is obsolete: true
Attachment #380139 - Flags: review?(dao)
Attachment #380113 - Flags: review?(dao)
I don't think the all tabs button should be a down arrow.  We have a side ways arrow to scroll the tabstrip side to side and I feel users might think this icon would be to scroll the tab strip up and down.  Also, a down-wards pointing arrow really has no represetation of many tabs, more tabs, all tabs or even a tab at all.
I'm not convinced that toolkit/themes/winstripe/global/arrow/ is the right place for this, can we just put it in browser? Also, this needs a patch specifically for the 1.9.1 branch.
(In reply to comment #11)
> I'm not convinced that toolkit/themes/winstripe/global/arrow/ is the right
> place for this, can we just put it in browser?

Alex said that this should go into toolkit.  Alex, did you have a specific reason?

> Also, this needs a patch
> specifically for the 1.9.1 branch.

How come?
The all-tabs button is completely different on branch.
I don't really care where it ends up, toolkit just seemed to make more sense since this was a general purpose arrow.
So, what do you think Dão?  Please suggest a new place for the icon if you think toolkit is not an appropriate place for it.
browser/ or browser/tabbrowser/, I don't really care. What's more tricky is finding a meaningful file name... with "arrow-down.png", you need to search the whole theme to figure out where that icon is used and supposed to be used. That's probably an argument for putting it in tabbrowser/, as that's already a meaningful context.
Blocks: 495606
Given bug 495606, I'd suggest something like browser/mainwindow-dropdown-arrow.png. I'm not good at making up file names, so feel free to propose something better.
No longer blocks: 495606
Depends on: 495606
No longer blocks: 495226
Ehsan, can you prepare a 1.9.1 patch based on bug 495606?
Blocks: 495226, 495606
No longer depends on: 495606
Attached patch Patch (v2.1) (obsolete) — Splinter Review
With the new file name...
Attachment #380139 - Attachment is obsolete: true
Attachment #380709 - Flags: review?(dao)
Attachment #380139 - Flags: review?(dao)
Attached patch 1.9.1 Patch (obsolete) — Splinter Review
Attachment #380710 - Flags: review?(dao)
Attachment #380710 - Flags: review?(dao) → review-
Comment on attachment 380710 [details] [diff] [review]
1.9.1 Patch

USE_TAB_PREVIEWS is not defined. You need to touch the %else branch only.
Attached patch 1.9.1 Patch (obsolete) — Splinter Review
Attachment #380710 - Attachment is obsolete: true
Attachment #380714 - Flags: review?(dao)
Comment on attachment 380714 [details] [diff] [review]
1.9.1 Patch

>+.tabs-alltabs-button:hover > .toolbarbutton-icon {
>+  -moz-image-region: rect(0, 26px, 11px, 13px);
> }

The images have a hit state, not a hover state.
Attachment #380714 - Flags: review?(dao) → review-
(In reply to comment #23)
> (From update of attachment 380714 [details] [diff] [review])
> >+.tabs-alltabs-button:hover > .toolbarbutton-icon {
> >+  -moz-image-region: rect(0, 26px, 11px, 13px);
> > }
> 
> The images have a hit state, not a hover state.

Hmm, so do you want me to change the trunk patch to hit state as well?
Attached patch Patch (v2.2)Splinter Review
(In reply to comment #24)
> (In reply to comment #23)
> > (From update of attachment 380714 [details] [diff] [review] [details])
> > >+.tabs-alltabs-button:hover > .toolbarbutton-icon {
> > >+  -moz-image-region: rect(0, 26px, 11px, 13px);
> > > }
> > 
> > The images have a hit state, not a hover state.
> 
> Hmm, so do you want me to change the trunk patch to hit state as well?

Logically you would want that!  :-)
Attachment #380709 - Attachment is obsolete: true
Attachment #380719 - Flags: review?(dao)
Attachment #380709 - Flags: review?(dao)
Attached patch 1.9.1 Patch (obsolete) — Splinter Review
Attachment #380714 - Attachment is obsolete: true
Attachment #380720 - Flags: review?(dao)
Attachment #380720 - Flags: review?(dao) → review-
Comment on attachment 380720 [details] [diff] [review]
1.9.1 Patch

This makes the tab bar 1px taller, I think.

>+.tabs-alltabs-button:hover:active > .toolbarbutton-icon {
>+  -moz-image-region: rect(0, 26px, 11px, 13px);
> }

:active doesn't work here, you want [open="true"].
Attached patch 1.9.1 Patch (obsolete) — Splinter Review
(In reply to comment #27)
> (From update of attachment 380720 [details] [diff] [review])
> This makes the tab bar 1px taller, I think.
> 
> >+.tabs-alltabs-button:hover:active > .toolbarbutton-icon {
> >+  -moz-image-region: rect(0, 26px, 11px, 13px);
> > }

I tested using DOM Inspector, and the tab bar remains at 30px height.

> :active doesn't work here, you want [open="true"].

Done.
Attachment #380720 - Attachment is obsolete: true
Attachment #380728 - Flags: review?(dao)
Attachment #380728 - Flags: review?(dao) → review-
Comment on attachment 380728 [details] [diff] [review]
1.9.1 Patch

(In reply to comment #28)
> I tested using DOM Inspector, and the tab bar remains at 30px height.

Not sure which element and which property you're looking at, but please test by comparing screenshots or something else reliable.
Attached patch 1.9.1 PatchSplinter Review
(In reply to comment #29)
> (From update of attachment 380728 [details] [diff] [review])
> (In reply to comment #28)
> > I tested using DOM Inspector, and the tab bar remains at 30px height.
> 
> Not sure which element and which property you're looking at, but please test by
> comparing screenshots or something else reliable.

Weird, I was measuring the height of the alltabs toolbarbutton, but I guess from now on I won't trust DOM Inspector in this aspect...
Attachment #380728 - Attachment is obsolete: true
Attachment #380740 - Flags: review?(dao)
Attachment #380740 - Flags: review?(dao) → review+
Comment on attachment 380719 [details] [diff] [review]
Patch (v2.2)

makes the tab bar 1px taller
Attachment #380719 - Flags: review?(dao) → review-
I'm also not sure that we should do this on trunk at all.
(In reply to comment #32)
> I'm also not sure that we should do this on trunk at all.

Without landing it on trunk, we can't land it on 1.9.1 either, right?
Attachment #380740 - Flags: approval1.9.1?
Isn't this going to break compat with some themes?  We're adding a new image name, so themes using the old image location will break... unless I"m just reading the patch wrong.  I don't think we can take this at the last minute like this...
I don't see how. Themes ship all their images themselves.
No longer blocks: 495606
Depends on: 495606
... and their own stylesheets, too. They are independent of everything in browser/themes/.

On an unrelated note, sorry for messing up the dependency fields. Bug 495606 should land first, on both trunk and branch, and then the 1.9.1 patch in this bug can be reduced to the CSS changes (no image additions, no packaging changes).
No longer blocks: 495226
Need to see before/after screenshots before I approve anything here.
Attached image Before/After screenshot
Beltzner: posted a before/after screenshot as attachment 381007 [details].
(In reply to comment #10)
> I don't think the all tabs button should be a down arrow.  We have a side ways
> arrow to scroll the tabstrip side to side and I feel users might think this
> icon would be to scroll the tab strip up and down.  Also, a down-wards pointing
> arrow really has no represetation of many tabs, more tabs, all tabs or even a
> tab at all.

Anybody going to comment on this comment?  Why don't we just make every button image in the them an arrow and look disabled.  What is the reasoning behind this logic?
It's already a downwards-pointing arrow on branch. This bug isn't going to change this.
>Anybody going to comment on this comment?  Why don't we just make every button
>image in the them an arrow and look disabled.  What is the reasoning behind
>this logic?

sorry, didn't mean to ignore the comment, I'm just inundated with bugmail.  I'm fine with us coming up with a more descriptive symbol here (some browsers have had like 40 arrows in the UI), but it's something we would need to think about for the next release since we unfortunately no longer have time to create artwork or test.
Comment on attachment 380740 [details] [diff] [review]
1.9.1 Patch

a191=beltzner
Attachment #380740 - Flags: approval1.9.1? → approval1.9.1+
(In reply to comment #32)
> I'm also not sure that we should do this on trunk at all.

So, should I first land it on trunk, or directly on 1.9.1?
Since it has 1.9.1 approval I would assume both.
(In reply to comment #45)
> Since it has 1.9.1 approval I would assume both.

Yes, but since Dão explicitly stated that he's not ok with taking this on trunk, I guess I'll wait for him to weigh in.
oh, right, forgot about the control-tab and all tabs stuff on trunk (which changes the icon), just 1.9.1 would make sense then.  We are probably going to freeze for RC pretty soon, so it would be good if we checked in soon so all of our tab strip icons are in the same visual style.
Based on IRC conversation with Alex, landed only on 1.9.1: <http://hg.mozilla.org/releases/mozilla-1.9.1/rev/0ac3ca7d67a8>.

I'm not sure what the correct convention here is, but I'm marking this as FIXED and fixed1.9.1 and also setting the TM to Firefox 3.5.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.5
Version: Trunk → 3.5 Branch
The reason that this was not landed on trunk was that trunk uses a different all tabs icon, and we didn't want to overwrite that.
Is it intentional that the arrow shifted one pixel to the right? It now feels as if 2px of the button were cut off... (in attachment 381007 [details] you'll notice that the original arrow was centered while the new one isn't).
(In reply to comment #50)
> Is it intentional that the arrow shifted one pixel to the right? It now feels
> as if 2px of the button were cut off... (in attachment 381007 [details] you'll notice
> that the original arrow was centered while the new one isn't).

Alex, if that is not intentional, then I think the image needs to be updated because I simply cut it in half inside the code.
The image seems to be balanced, has three transparent pixels on each side.
The whole button should probably 17 instead of 18px wide...
Depends on: 496775
verified FIXED on builds:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090608 Shiretoko/3.5pre (.NET CLR 3.5.30729) ID:20090608042835

and 

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1pre) Gecko/20090608 Shiretoko/3.5pre (.NET CLR 3.5.30729) ID:20090608042835
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: