Closed Bug 845306 Opened 11 years ago Closed 11 years ago

Use 2x images for menu arrows

Categories

(Toolkit :: Themes, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: fryn, Assigned: fryn)

References

Details

Attachments

(4 files, 1 obsolete file)

Attached patch patch v1 (obsolete) — Splinter Review
Use 2x images for the menu arrows (the rightward-pointing arrows that indicate the item is a menu) and the arrows in <autorepeatbutton/> elements.

The odd thing is that OS X is using a 17px-wide arrow image, whereas our non-HiDPI version is 8px wide, which means that we'll need to do something like the following for HiDPI mode:
width: 8.5px;
margin-right: -.5px;

I created a 2x version of menu-arrow.png using Reuben's images in bug 795665, but they don't perfectly match OS X's.

Here's a preliminary patch for this. It looks a lot better in HiDPI mode than the incorrectly colored, fuzzy 1x images we have now, but it's not perfect.
Attachment #718395 - Flags: review?(shorlander)
Attachment #718395 - Flags: review?(shorlander) → feedback?(shorlander)
Attached image menu-arrow.png
Hey Frank, I think this is the correct image. I thought the other one was the menu arrow image because it also had a grey version, supposedly for disabled menus. This one looks more like the OS X menu arrow image, but I don't see disabled/selected states in the OS X files.
Attachment #718395 - Flags: feedback?(shorlander)
(In reply to Reuben Morais [:reuben] from comment #1)
> Hey Frank, I think this is the correct image. I thought the other one was
> the menu arrow image because it also had a grey version, supposedly for
> disabled menus. This one looks more like the OS X menu arrow image, but I
> don't see disabled/selected states in the OS X files.

Interesting. Nice find. That does look more like it. Its large size seems to explain the anti-aliasing that hints of down-scaling in the native menu arrows.

I'm not sure what to do with this, but Stephen hopefully knows.
This is somewhat low priority compared to Stephen's multiple high-priority projects, so I removed the feedback flag for now, since it's not a trivial fix.
The small arrows are 9px wide, the larger arrows are 18 they just have 1 row of transparent pixels.
Attached image Menu Arrow
Had to adjust the size. Now 27 x 10 was 24 x 10
Attached patch patch v2Splinter Review
Try run was all green, including reftests:
https://tbpl.mozilla.org/?tree=Try&rev=7639bf90e016
Assignee: nobody → fyan
Attachment #718395 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #719177 - Flags: review?(shorlander)
Component: Theme → Themes
Product: Firefox → Toolkit
Attachment #719177 - Flags: review?(shorlander) → review?(dolske)
Attachment #719177 - Flags: review?(dolske) → review+
https://hg.mozilla.org/mozilla-central/rev/5e9be4f5489d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: