Closed Bug 683390 Opened 14 years ago Closed 13 years ago

Switch to Tab graphic is displayed in the wrong vertical orientation with tabs-on-top enabled

Categories

(Firefox :: Theme, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Firefox 15

People

(Reporter: jaws, Assigned: dwendorf)

References

Details

(Whiteboard: [switch-to-tab][good first bug][mentor=jaws][lang=css])

Attachments

(5 files, 3 obsolete files)

Attached image Screenshot of bug
The icon for Switch to Tab shows a tab coming from the top of a tab strip, even when tabs-on-top are enabled.
Component: Location Bar → Theme
QA Contact: location.bar → theme
We could use -moz-transform: scaleY(-1); to flip the image based on whether or not tabs-on-top are enabled, but I'm not sure how we would make a selector for that, since the richlistitem is in a part of the DOM tree that knows nothing about tabs. Alternately, we could just replace the image with a flipped version, so that we're at least making it fit with the default tabs setting.
(In reply to Margaret Leibovic [:margaret] from comment #1) > Alternately, we could just replace the image with a flipped version, so that > we're at least making it fit with the default tabs setting. We should probably just do this.
(In reply to Margaret Leibovic [:margaret] from comment #1) > We could use -moz-transform: scaleY(-1); to flip the image based on whether > or not tabs-on-top are enabled, but I'm not sure how we would make a > selector for that, since the richlistitem is in a part of the DOM tree that > knows nothing about tabs. We can do a CSS selector for this because we store the tabsontop attribute on window. For example: window[tabsontop="true"] .ac-action-icon { -moz-transform: scaleY(-1); }
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Attached image Screenshot of patch
Screenshot of applied patch.
Attachment #557286 - Flags: feedback?(shorlander)
Attached patch Patch for bug 683390 (obsolete) — Splinter Review
Attachment #557287 - Flags: review?(dao)
Attachment #557286 - Attachment is patch: false
Attachment #557286 - Attachment mime type: text/plain → image/png
Attachment #557286 - Attachment is patch: false
Attachment #557286 - Attachment mime type: text/plain → image/png
Comment on attachment 557287 [details] [diff] [review] Patch for bug 683390 >--- a/browser/themes/winstripe/browser/browser.css >+++ b/browser/themes/winstripe/browser/browser.css > richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon { > list-style-image: url("chrome://browser/skin/actionicon-tab.png"); > } > >+window[tabsontop="true"] richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon { >+ -moz-transform: scaleY(-1); >+} The icon is still wrong for tabs on bottom... It was, in fact, never right for Windows and Linux.
Attachment #557287 - Flags: review?(dao) → review-
Whiteboard: [switch-to-tab]
Yeah it really only applies to OSX. The other tabs are always attached bottom. It needs a new graphic.
Attached patch Patch for bug 683390 (obsolete) — Splinter Review
Updated the patch to be correct on gnomestripe and winstripe. I understand that we may want a new graphic, but I think we can land this patch in the meantime. As the saying goes, "perfect is the enemy of good."
Attachment #557287 - Attachment is obsolete: true
Attachment #557355 - Flags: review?(dao)
Comment on attachment 557355 [details] [diff] [review] Patch for bug 683390 If we don't get a newly designed icon, the obvious solution is to just open the existing one in a graphics editing tool and flip it over.
Attachment #557355 - Flags: review?(dao) → review-
Assignee: jwein → margaret.leibovic
I think this will be a good first bug for our new intern. Stephen, could you have a new image ready before next week so that he can whip up a patch by the end of his first day? :)
Attachment #557286 - Flags: feedback?(shorlander)
Assignee: margaret.leibovic → jwein
Assignee: jwein → mwein2009
Assignee: mwein2009 → nobody
Status: ASSIGNED → NEW
Whiteboard: [switch-to-tab] → [switch-to-tab][good first bug][mentor=jwein][lang=css]
Assignee: nobody → jan.bambach
Assignee: jan.bambach → info
Status: NEW → ASSIGNED
Whiteboard: [switch-to-tab][good first bug][mentor=jwein][lang=css] → [switch-to-tab][good first bug][mentor=jaws][lang=css]
Assignee: info → dan
In this patch, I'm using the PNGs from Stephen Horlander and also using the hover-state graphic. Additionally, the width of the graphic changed from 23 to 16 (getting rid of whitespace on both sides), so I set a left and right padding of 3px to maintain the correct whitespace.
Attachment #619838 - Flags: review?(jwein)
Attachment #619838 - Flags: review?(jwein) → review?(dao)
Attachment #619838 - Flags: feedback?(jwein)
My second patch includes the changed PNGs, and fixes Gnomestripe. I did not initially notice that the new Gnomestripe PNG had no hoverstate (it is only 16x16), so I have removed the CSS support for it.
Attachment #619909 - Flags: review?(dao)
Attachment #619909 - Flags: feedback?(jwein)
Attachment #619909 - Attachment is patch: true
Attachment #557355 - Attachment is obsolete: true
Attachment #619838 - Attachment is obsolete: true
Attachment #619838 - Flags: review?(dao)
Attachment #619838 - Flags: feedback?(jwein)
Comment on attachment 619909 [details] [diff] [review] Include Stephen's PNGs and remove Gnomestripe hover Looks good to me on Windows & Linux. I didn't test it out on Mac, but the CSS looks fine. Frank, can you test this patch out on Mac?
Attachment #619909 - Flags: feedback?(jwein)
Attachment #619909 - Flags: feedback?(fryn)
Attachment #619909 - Flags: feedback+
Bug 690191 shows a grey switch to tab icon.
Comment on attachment 619909 [details] [diff] [review] Include Stephen's PNGs and remove Gnomestripe hover If the UI is supposed to look like this with the patch, then feedback+.
Attachment #619909 - Flags: feedback?(fryn) → feedback+
Attachment #619909 - Flags: review?(dao) → review+
Thanks for the patch Dan! I've now pushed this to mozilla-inbound where it will stay for a day or two before getting merged to mozilla-central. When it is merged to mozilla-central it should show up in the next day's Nightly build. https://hg.mozilla.org/integration/mozilla-inbound/rev/185af659e9b1
Flags: in-testsuite-
Target Milestone: --- → Firefox 15
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: