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)
Firefox Graveyard
RSS Discovery and Preview
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)
Assignee | ||
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
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-
Assignee | ||
Comment 3•17 years ago
|
||
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)
Assignee | ||
Comment 4•17 years ago
|
||
Comment 5•17 years ago
|
||
Comment on attachment 301356 [details] [diff] [review]
set margin and height for menuitem
r=mano
Attachment #301356 -
Flags: review?(mano) → review+
Assignee | ||
Comment 6•17 years ago
|
||
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+
Assignee | ||
Comment 7•17 years ago
|
||
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)
Comment 8•17 years ago
|
||
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.
Updated•17 years ago
|
Attachment #302683 -
Flags: review?(mano) → review-
Assignee | ||
Comment 9•17 years ago
|
||
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.
Assignee | ||
Comment 10•17 years ago
|
||
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?
Updated•16 years ago
|
Whiteboard: [polish-easy] [polish-visual]
Comment 11•16 years ago
|
||
(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
Comment 12•16 years ago
|
||
To follow up we need to confirm that we are doing this right for every drop down, not this specific drop down.
Comment 13•16 years ago
|
||
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.
Assignee | ||
Comment 14•16 years ago
|
||
(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.
Updated•16 years ago
|
Target Milestone: Firefox 3 beta4 → ---
Assignee | ||
Comment 15•16 years ago
|
||
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 16•16 years ago
|
||
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-
Assignee | ||
Comment 17•16 years ago
|
||
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)
Updated•16 years ago
|
Attachment #362629 -
Flags: ui-review?(faaborg) → ui-review+
Comment 18•16 years ago
|
||
Comment on attachment 362629 [details]
use icon for the Choose Application menuitem, v2
looks great
Assignee | ||
Comment 19•16 years ago
|
||
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 20•16 years ago
|
||
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+
Comment 21•16 years ago
|
||
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?
Assignee | ||
Comment 22•16 years ago
|
||
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 23•16 years ago
|
||
Comment on attachment 367195 [details] [diff] [review]
patch, v2
Works fine on Mac as well, thanks!
Attachment #367195 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Updated•16 years ago
|
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
Assignee | ||
Updated•16 years ago
|
Attachment #367195 -
Flags: approval1.9.1?
Comment 24•16 years ago
|
||
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
Comment 25•16 years ago
|
||
something isn't right here...
Attachment #301279 -
Attachment is obsolete: true
Attachment #301357 -
Attachment is obsolete: true
Updated•16 years ago
|
Attachment #367474 -
Attachment is patch: false
Attachment #367474 -
Attachment mime type: text/plain → image/png
Comment 26•16 years ago
|
||
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.
Updated•16 years ago
|
Attachment #367195 -
Flags: approval1.9.1?
Assignee | ||
Comment 27•16 years ago
|
||
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?
Comment 28•16 years ago
|
||
You can test it nonetheless, no?
Assignee | ||
Comment 29•16 years ago
|
||
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?
Comment 30•16 years ago
|
||
Why wouldn't that be acceptable?
Assignee | ||
Comment 31•16 years ago
|
||
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.
Comment 32•16 years ago
|
||
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.
Assignee | ||
Comment 33•16 years ago
|
||
Attachment #367762 -
Flags: review?(dao)
Assignee | ||
Comment 34•16 years ago
|
||
Tested with Vista, XP, Ubuntu, no Mac OS available for this purpose, sorry.
Updated•16 years ago
|
Attachment #367762 -
Flags: review?(dao) → review?(gavin.sharp)
Comment 35•16 years ago
|
||
Comment on attachment 367762 [details] [diff] [review]
m-c patch, v3
Sorry, no OS X here either.
Comment 36•16 years ago
|
||
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.
Assignee | ||
Comment 37•16 years ago
|
||
It's Ubuntu 7.10, maybe you're using a newer version?
Comment 38•16 years ago
|
||
Yeah, I'm using 8.10.
Comment 39•16 years ago
|
||
This doesn't work on Mac (I get a generic icon), so you should omit the change from pinstripe I suppose.
Assignee | ||
Comment 40•16 years ago
|
||
Attachment #367762 -
Attachment is obsolete: true
Attachment #367822 -
Flags: review?(gavin.sharp)
Attachment #367762 -
Flags: review?(gavin.sharp)
Comment 41•16 years ago
|
||
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?
Comment 42•16 years ago
|
||
I don't know such a bug, but I was going file one.
Comment 43•16 years ago
|
||
>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.
Assignee | ||
Comment 44•16 years ago
|
||
Oook, just gnomestripe...
Attachment #367822 -
Attachment is obsolete: true
Attachment #367869 -
Flags: review?(gavin.sharp)
Attachment #367822 -
Flags: review?(gavin.sharp)
Updated•16 years ago
|
Attachment #367869 -
Flags: review?(gavin.sharp) → review+
Comment 45•16 years ago
|
||
(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.
Updated•16 years ago
|
Whiteboard: [polish-easy] [polish-visual] → [polish-easy] [polish-visual][icons-3.1]
Comment 46•16 years ago
|
||
Comment on attachment 367869 [details] [diff] [review]
m-c patch, v3.2
http://hg.mozilla.org/mozilla-central/rev/55b118c2235b
Assignee | ||
Comment 47•16 years ago
|
||
combined patch for 1.9.1, has ui-r=faaborg, r=gavin
Attachment #367979 -
Flags: approval1.9.1?
Updated•16 years ago
|
Attachment #367979 -
Flags: approval1.9.1? → approval1.9.1+
Comment 48•16 years ago
|
||
Comment on attachment 367979 [details] [diff] [review]
m-191 patch
a191=beltzner
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Whiteboard: [polish-easy] [polish-visual][icons-3.1] → [polish-easy] [polish-visual][icons-3.1][needs 191 landing]
Comment 49•16 years ago
|
||
Keywords: checkin-needed → fixed1.9.1
Whiteboard: [polish-easy] [polish-visual][icons-3.1][needs 191 landing] → [polish-easy] [polish-visual][icons-3.1]
Comment 50•16 years ago
|
||
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]
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•