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)
Firefox
Theme
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)
The icon for Switch to Tab shows a tab coming from the top of a tab strip, even when tabs-on-top are enabled.
Updated•14 years ago
|
Component: Location Bar → Theme
QA Contact: location.bar → theme
Comment 1•14 years ago
|
||
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.
Comment 2•14 years ago
|
||
(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.
Reporter | ||
Comment 3•14 years ago
|
||
(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); }
Reporter | ||
Updated•14 years ago
|
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•14 years ago
|
||
Screenshot of applied patch.
Attachment #557286 -
Flags: feedback?(shorlander)
Reporter | ||
Comment 5•14 years ago
|
||
Attachment #557287 -
Flags: review?(dao)
Reporter | ||
Updated•14 years ago
|
Attachment #557286 -
Attachment is patch: false
Attachment #557286 -
Attachment mime type: text/plain → image/png
Updated•14 years ago
|
Attachment #557286 -
Attachment is patch: false
Attachment #557286 -
Attachment mime type: text/plain → image/png
Comment 6•14 years ago
|
||
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-
Updated•14 years ago
|
Whiteboard: [switch-to-tab]
Comment 8•14 years ago
|
||
Yeah it really only applies to OSX. The other tabs are always attached bottom.
It needs a new graphic.
Reporter | ||
Comment 9•14 years ago
|
||
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 10•14 years ago
|
||
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-
Reporter | ||
Updated•14 years ago
|
Assignee: jwein → margaret.leibovic
Comment 11•14 years ago
|
||
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? :)
Comment 12•14 years ago
|
||
Updated•14 years ago
|
Attachment #557286 -
Flags: feedback?(shorlander)
Reporter | ||
Updated•14 years ago
|
Assignee: margaret.leibovic → jwein
Reporter | ||
Updated•14 years ago
|
Assignee: jwein → mwein2009
Reporter | ||
Updated•14 years ago
|
Assignee: mwein2009 → nobody
Status: ASSIGNED → NEW
Whiteboard: [switch-to-tab] → [switch-to-tab][good first bug][mentor=jwein][lang=css]
Updated•14 years ago
|
Assignee: nobody → jan.bambach
Reporter | ||
Updated•13 years ago
|
Assignee: jan.bambach → info
Status: NEW → ASSIGNED
Reporter | ||
Updated•13 years ago
|
Whiteboard: [switch-to-tab][good first bug][mentor=jwein][lang=css] → [switch-to-tab][good first bug][mentor=jaws][lang=css]
Reporter | ||
Updated•13 years ago
|
Assignee: info → dan
Assignee | ||
Comment 13•13 years ago
|
||
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)
Updated•13 years ago
|
Attachment #619838 -
Flags: review?(jwein) → review?(dao)
Updated•13 years ago
|
Attachment #619838 -
Flags: feedback?(jwein)
Assignee | ||
Comment 14•13 years ago
|
||
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)
Assignee | ||
Updated•13 years ago
|
Attachment #619909 -
Attachment is patch: true
Reporter | ||
Updated•13 years ago
|
Attachment #557355 -
Attachment is obsolete: true
Reporter | ||
Updated•13 years ago
|
Attachment #619838 -
Attachment is obsolete: true
Attachment #619838 -
Flags: review?(dao)
Attachment #619838 -
Flags: feedback?(jwein)
Reporter | ||
Comment 15•13 years ago
|
||
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+
Comment 16•13 years ago
|
||
Bug 690191 shows a grey switch to tab icon.
![]() |
||
Comment 17•13 years ago
|
||
![]() |
||
Comment 18•13 years ago
|
||
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+
Updated•13 years ago
|
Attachment #619909 -
Flags: review?(dao) → review+
Reporter | ||
Comment 19•13 years ago
|
||
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
Comment 20•13 years ago
|
||
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.
Description
•