Closed Bug 842410 Opened 13 years ago Closed 13 years ago

Use Unicode right-pointing triangle instead of an image in menu arrow boxes

Categories

(Toolkit :: Themes, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: reuben, Assigned: reuben)

References

(Blocks 1 open bug, )

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Attached patch Patch (obsolete) — Splinter Review
Attachment #715284 - Flags: ui-review?(ux-review)
Attachment #715284 - Flags: review?(dao)
What are native menus using?
Attached file OS X image
(In reply to Justin Dolske [:Dolske] from comment #3) > What are native menus using? If you mean what OS X uses, it's this (and a greyed out version for disabled menus).
Comment on attachment 715284 [details] [diff] [review] Patch >+.menu-right::after { > width: 8px; >- list-style-image: url("chrome://global/skin/menu/menu-arrow.png"); >- -moz-image-region: rect(0, 8px, 10px, 0); >-} >- >-.menu-right[_moz-menuactive="true"]:not([disabled="true"]) { >- -moz-image-region: rect(0, 16px, 10px, 8px); >-} >- >-.menu-right[disabled="true"] { >- -moz-image-region: rect(0, 24px, 10px, 16px); >+ content: "\25B6"; /* black right-pointing triangle */ >+ font-size: 90%; > } Is width:8px still needed?
Attached patch PatchSplinter Review
(In reply to Dão Gottwald [:dao] from comment #5) > Is width:8px still needed? I don't know why I left that in :)
Attachment #715284 - Attachment is obsolete: true
Attachment #715284 - Flags: ui-review?(ux-review)
Attachment #715284 - Flags: review?(dao)
Attachment #715589 - Flags: ui-review?(ux-review)
Attachment #715589 - Flags: review?(dao)
(In reply to Reuben Morais [:reuben] from comment #4) > > What are native menus using? > > If you mean what OS X uses, it's this (and a greyed out version for disabled > menus). What I mean is, how do you know that's what the native menus are using?
(In reply to Justin Dolske [:Dolske] from comment #7) > (In reply to Reuben Morais [:reuben] from comment #4) > > > > What are native menus using? > > > > If you mean what OS X uses, it's this (and a greyed out version for disabled > > menus). > > What I mean is, how do you know that's what the native menus are using? It isn't. What OS X uses is the image I attached to the bug. I think ▶ is close enough that you can't tell the difference without zooming in and comparing. I can also convert the image to a @2x.png and use that if that's better.
If "▶" isn't actually what the native menus are using, then let's no go down that route. (Although I'd be willing to reconsider if it ends up being enormously difficult to fix this with a @2x image.) The concern is that we want to match native style as closely as practical, and so if we're just trading one wrong appearance for another it's not a net win.
(In reply to Justin Dolske [:Dolske] from comment #9) > If "▶" isn't actually what the native menus are using, then let's no go down > that route. (Although I'd be willing to reconsider if it ends up being > enormously difficult to fix this with a @2x image.) > > The concern is that we want to match native style as closely as practical, > and so if we're just trading one wrong appearance for another it's not a net > win. It's a net win, albeit a small one, in that "▶" is one Unicode codepoint, U+25B6, 3 bytes in UTF-8 or 2 in UTF-16, common to all platforms, and requiring no maintenance, while an image is certainly more than 3 bytes, especially if each platform uses a different format. Of course the win is marginal compared to the total bulk of any of Firefox, Thunderbird or SeaMonkey; some would say it is practically infinitesimal.
(In reply to Tony Mechelynck [:tonymec] from comment #10) > It's a net win, albeit a small one, in that "▶" is one Unicode codepoint, > U+25B6, 3 bytes in UTF-8 or 2 in UTF-16, common to all platforms, and > requiring no maintenance, while an image is certainly more than 3 bytes, > especially if each platform uses a different format. Of course the win is > marginal compared to the total bulk of any of Firefox, Thunderbird or > SeaMonkey; some would say it is practically infinitesimal. Additionally: you don't need inverted color versions for different hover states, it's text, so DPI-proof, a single version for high and low DPI screens, and simpler CSS rules. Anyway, I'll attach the images used by OS X in bug 795665 so someone can write a patch using the @2x approach.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Attachment #715589 - Flags: review?(dao)
Attachment #715589 - Flags: ui-review?(ux-review)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: