Closed Bug 415543 Opened 17 years ago Closed 16 years ago

"Choose Application…" menu item should have an icon

Categories

(Firefox Graveyard :: RSS Discovery and Preview, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 3.6a1

People

(Reporter: wladow, Assigned: wladow)

References

Details

(Keywords: fixed1.9.1, polish, Whiteboard: [polish-easy] [polish-visual][icons-shiretoko][polish-p3])

Attachments

(7 files, 9 obsolete files)

23.24 KB, image/png
faaborg
: ui-review+
Details
1.96 KB, patch
Gavin
: review+
Details | Diff | Splinter Review
13.35 KB, image/png
Details
9.77 KB, image/png
Details
23.70 KB, image/png
Details
498 bytes, patch
Gavin
: review+
Details | Diff | Splinter Review
1.94 KB, patch
beltzner
: approval1.9.1+
Details | Diff | Splinter Review
No description provided.
Attachment #301278 - Flags: review?(mano)
Attached image screenshot: before -> after (obsolete) —
Comment on attachment 301278 [details] [diff] [review] align "Choose application" menu-item correctly It has no icon, thus the margins should be applied some other way (i would like at how the bookmarks and history menus get this right).
Attachment #301278 - Flags: review?(mano) → review-
This patch corrects margin for menuitems in win and gnome and sets menuitem height to be the same with iconic menuitems. No need to edit pinstripe.
Attachment #301278 - Attachment is obsolete: true
Attachment #301356 - Flags: review?(mano)
Attached image screenshot: vista and ubuntu (obsolete) —
Comment on attachment 301356 [details] [diff] [review] set margin and height for menuitem r=mano
Attachment #301356 - Flags: review?(mano) → review+
Comment on attachment 301356 [details] [diff] [review] set margin and height for menuitem This does not work for XP correctly, needs to investigate little more what's wrong here.
Attachment #301356 - Attachment is obsolete: true
Attachment #301356 - Flags: review+
This patch solves the problem entirely. It removes "menuitem-iconic" class for iconic handlers menuitems and sets appropriate properties for all the menuitems.
Attachment #302683 - Flags: review?(mano)
I don't think this is right (this is the exact class we should be using for.. iconic menuitems). Practically speaking, it'd probably break Pinstripe.
Attachment #302683 - Flags: review?(mano) → review-
I made some tests before attaching the patch with WinVista, WinXP, Ubuntu 7.10 and Mac OS X 10.5 and it seemed to work correctly on every platform. The same approach is used f.e. here: http://lxr.mozilla.org/mozilla/source/browser/components/preferences/handlers.css#50 Similar context menus in Applications prefpane do not use iconic class either.
Mano, pls take a look here: http://lxr.mozilla.org/mozilla/source/toolkit/content/xul.css#833 If I understand this correctly, menuitem-iconic class isn't really needed as menupopup's item is binded as iconic menuitem automatically. That's what I see in DOMi too. If we use menuitem without any specific class, DOMi says it consists of menu-iconic-left box and menu-iconic-text label. If we use menuitem-iconic class, DOMi says it consists of menu-iconic-left box, menu-iconic-text and menu-accel-container box. We don't need to have accel-container. According to this, usage of menuitem-iconic is unnecessary and the last patch could this the issue. Or is there anything that I missed completely?
Whiteboard: [polish-easy] [polish-visual]
(In reply to comment #10) > Mano, pls take a look here: > http://lxr.mozilla.org/mozilla/source/toolkit/content/xul.css#833 > If I understand this correctly, menuitem-iconic class isn't really needed as > menupopup's item is binded as iconic menuitem automatically. That's what I see > in DOMi too. If we use menuitem without any specific class, DOMi says it > consists of menu-iconic-left box and menu-iconic-text label. If we use > menuitem-iconic class, DOMi says it consists of menu-iconic-left box, > menu-iconic-text and menu-accel-container box. We don't need to have > accel-container. According to this, usage of menuitem-iconic is unnecessary and > the last patch could this the issue. Or is there anything that I missed > completely? Mano - any comments here? I'd hate for this to miss 3.0, and then miss 3.1 too...
Status: NEW → ASSIGNED
To follow up we need to confirm that we are doing this right for every drop down, not this specific drop down.
Comment on attachment 302683 [details] [diff] [review] remove iconic class, update menuitem class The removal of menuitem-iconic isn't needed, right? As far as I can tell it doesn't change the styling, only whether we get menuitem-iconic or menuitem-iconic-noaccel binding (which makes no difference visually). Seems like just the CSS changes would be sufficient (making menu-icon-left always visible regardless of menuitem type). The changes to menu-iconic-left's padding look arbitrary - are they? While you're changing these, seems like we should just use the simpler ".menu-iconic-left" selector and avoid the "#handlersMenuList > menupopup > menuitem >", given that there is only one menulist on this page.
(In reply to comment #13) > (From update of attachment 302683 [details] [diff] [review]) > The removal of menuitem-iconic isn't needed, right? As far as I can tell it > doesn't change the styling, only whether we get menuitem-iconic or > menuitem-iconic-noaccel binding (which makes no difference visually). Seems > like just the CSS changes would be sufficient (making menu-icon-left always > visible regardless of menuitem type). No, it does change styling and that's the biggest issue here. A menu-item with this class looks completely different to one without this class. And a menu-item with this class looks differently in various OS versions like Vista Aero, Vista Basic and XP. I still think attachment 301278 [details] [diff] [review] is the way we should go. It's easy non-risky patch working correctly for all platforms and OS versions. Other ways to fix this sound just like unneeded hackery which does not make us sure, that all the items will look exactly the same on various platforms and OS versions. I've tested various possible solutions with Vista, XP, Ubuntu, Mac OS X, none of them worked as well as this one. Feel free to take this bug, because I apparently don't know how to fix this with css hack only. Note that Vista Aero, Vista Classic, Windows XP need different margin and item height values within one .css file.
Target Milestone: Firefox 3 beta4 → ---
Attached image use icon for Choose Application menuitem (obsolete) —
What if we used an icon for this menu-item? The one used in this screenshot is the icon used for similar menu-items in our Applications prefpane.
Attachment #362067 - Flags: ui-review?(faaborg)
Comment on attachment 362067 [details] use icon for Choose Application menuitem Current icons in the application prefpane are kind of messed up. This is actually the icon for "always ask," the choice for "choose application" should be an application window icon. Details in bug 429725 and this mockup: https://bug429725.bugzilla.mozilla.org/attachment.cgi?id=316486
Attachment #362067 - Flags: ui-review?(faaborg) → ui-review-
Use application.png instead. The screenshots taken from Vista, XP, Ubuntu. Currently I have no Mac running machine available for testing, but I suppose that http://mxr.mozilla.org/mozilla1.9.1/source/browser/themes/pinstripe/browser/preferences/application.png will be picked up properly.
Attachment #362067 - Attachment is obsolete: true
Attachment #362629 - Flags: ui-review?(faaborg)
Attachment #362629 - Flags: ui-review?(faaborg) → ui-review+
Comment on attachment 362629 [details] use icon for the Choose Application menuitem, v2 looks great
Attached patch patch (obsolete) — Splinter Review
The patch for the attachment 362629 [details] 'use icon for the Choose Application menuitem, v2'
Attachment #302683 - Attachment is obsolete: true
Attachment #364295 - Flags: review?(gavin.sharp)
Comment on attachment 364295 [details] [diff] [review] patch The "Choose application" icon is rather ugly on mac, but I suppose that's a separate issue.
Attachment #364295 - Flags: review?(gavin.sharp) → review+
Actually, it would be easier for themers if this item was styled using CSS (e.g. using #chooseApplicationMenuItem with list-style-image) rather than hardcoding the "src" in code. Any chance you could investigate that approach?
Attached patch patch, v2Splinter Review
works as expected with vista, xp, ubuntu needs to be tested with osx
Attachment #364295 - Attachment is obsolete: true
Attachment #367195 - Flags: review?(gavin.sharp)
Comment on attachment 367195 [details] [diff] [review] patch, v2 Works fine on Mac as well, thanks!
Attachment #367195 - Flags: review?(gavin.sharp) → review+
Keywords: checkin-needed
Summary: rss preview: "Choose application" menu-item is misaligned → [feed preview] the "Choose Application…" menu item should have an icon
Target Milestone: --- → Firefox 3.2a1
Attachment #367195 - Flags: approval1.9.1?
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Summary: [feed preview] the "Choose Application…" menu item should have an icon → "Choose Application…" menu item should have an icon
Attached image linux screenshot
something isn't right here...
Attachment #301279 - Attachment is obsolete: true
Attachment #301357 - Attachment is obsolete: true
Attachment #367474 - Attachment is patch: false
Attachment #367474 - Attachment mime type: text/plain → image/png
So chrome://browser/skin/preferences/application.png is 15x15 pixels. I suggest you use moz-icon://dummy.exe?size=16 instead. We should probably do that on all platforms, but I'm not sure if dummy.exe works on OS X.
Attachment #367195 - Flags: approval1.9.1?
Attached image ubuntu screenshot
I don't see the issue with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090315 Minefield/3.2a1pre hence I can't test the approach you suggested. Pls, could you do that?
You can test it nonetheless, no?
Oh wait, I'm a little bit confused now: are you really asking me to drop the application.png icon and to use > list-style-image: url("moz-icon://dummy.exe?size=16"); instead? Is that acceptable? Or am I completely out of line here?
Why wouldn't that be acceptable?
Because it's a workaround on how to get an icon. I'd say the purer solution is to fix the icon size in follow-up bug.
It is not a workaround. We use moz-icon in directory listings and in gnomestripe all over the place. It's the correct way to get an icon from the operating system. In fact, using your own icon when the OS provides it is a workaround.
Attached patch m-c patch, v3 (obsolete) — Splinter Review
Attachment #367762 - Flags: review?(dao)
Tested with Vista, XP, Ubuntu, no Mac OS available for this purpose, sorry.
Attachment #367762 - Flags: review?(dao) → review?(gavin.sharp)
Comment on attachment 367762 [details] [diff] [review] m-c patch, v3 Sorry, no OS X here either.
Comment on attachment 367763 [details] use icon for the Choose Application menuitem, v3 That's strange, I get a real application icon for this on Ubuntu, very similar to our application.png.
It's Ubuntu 7.10, maybe you're using a newer version?
Yeah, I'm using 8.10.
This doesn't work on Mac (I get a generic icon), so you should omit the change from pinstripe I suppose.
Attached patch m-c patch, v3.1 (obsolete) — Splinter Review
Attachment #367762 - Attachment is obsolete: true
Attachment #367822 - Flags: review?(gavin.sharp)
Attachment #367762 - Flags: review?(gavin.sharp)
I wonder whether we have bugs for using moz-icon rather than application png elsewhere... or did we add application.png to intentionally be different than the .exe icon?
I don't know such a bug, but I was going file one.
>I wonder whether we have bugs for using moz-icon rather than application png >elsewhere... or did we add application.png to intentionally be different than >the .exe icon? Varies by platform: Linux: we should try to extract the application icon from the system if possible, since it varies by OS theme OS X: there isn't an icon available for extraction, currently we have an application.png icon that is roughly based on the .app appearance, we'll likely be updating this file in the next few days XP: We should go with our application.png that we have, Microsoft forgot to update the .exe icon from Windows 95 to XP, so we updated it for them in the Luna style. Vista: We should go with our application.png. The extracted .exe icon isn't that bad, but I think ours actually looks a little nicer.
Attached patch m-c patch, v3.2Splinter Review
Oook, just gnomestripe...
Attachment #367822 - Attachment is obsolete: true
Attachment #367869 - Flags: review?(gavin.sharp)
Attachment #367822 - Flags: review?(gavin.sharp)
Attachment #367869 - Flags: review?(gavin.sharp) → review+
(In reply to comment #43) > XP: We should go with our application.png that we have, Microsoft forgot to > update the .exe icon from Windows 95 to XP, so we updated it for them in the > Luna style. > > Vista: We should go with our application.png. The extracted .exe icon isn't > that bad, but I think ours actually looks a little nicer. We also use the moz-icon for .exe (e.g. in the applications prefpane, along with appliocation.png), though, so that's inconsistent.
Whiteboard: [polish-easy] [polish-visual] → [polish-easy] [polish-visual][icons-3.1]
Blocks: 483881
Attached patch m-191 patchSplinter Review
combined patch for 1.9.1, has ui-r=faaborg, r=gavin
Attachment #367979 - Flags: approval1.9.1?
Attachment #367979 - Flags: approval1.9.1? → approval1.9.1+
Keywords: checkin-needed
Whiteboard: [polish-easy] [polish-visual][icons-3.1] → [polish-easy] [polish-visual][icons-3.1][needs 191 landing]
Whiteboard: [polish-easy] [polish-visual][icons-3.1][needs 191 landing] → [polish-easy] [polish-visual][icons-3.1]
This bug's priority relative to the set of other polish bugs is: P3 - Polish issue that is in a secondary interface, occasionally encountered, or is not easily identifiable.
Whiteboard: [polish-easy] [polish-visual][icons-3.1] → [polish-easy] [polish-visual][icons-shiretoko][polish-p3]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: