Closed Bug 800233 Opened 12 years ago Closed 10 years ago

Need an updated and/or HiDPI cursor for CSS "progress" and "wait" cursors

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 411273

People

(Reporter: Dolske, Unassigned)

References

()

Details

Attachments

(2 files)

Followup from bug 792592.

For the CSS "cursor: progress" and "cursor: wait" settings, on OS X we use our own custom 16x16 1-bit animated cursor. It looks fuzzy on HiDPI displays, and is generally outdated in appearance.

Chrome and Safari both use a smoothly-spinning blue circle with attached arrow-wedge. It's unclear if there's a way for Cocoa apps to get this, though. There's nothing documented in the OS X nsCursor API. See bug 792592 and especially bug 784909 for some background on APIs used.

AFAIK, the easiest path forward would be to use our existing code for custom animated cursors, but add a few more frames with a modern design.
Attached patch Rough patchSplinter Review
So, I wash curious.

I grabbed a copy of the default cursor with a little ObjC program, with the 1-liner:

[[[[NSCursor arrowCursor] image] TIFFRepresentation] writeToFile:[@"~/Cursor.tiff" stringByStandardizingPath] atomically:YES]

Exported that to a PNG, loaded it up in Acorn, and added a little spinny thing with twice the frames. (Aside: this style of spinner is hard to get looking right, even with the extra HiDPI pixels. Rotating the little cross-hatched circle was a PITA to get looking even roughly right).

I didn't really polish the individual frames (the hatched circle is just a couple of rotating squares, if you look closely). And there's extra padding and the hotspot is probably off. And the lo-dpi frames are just 2 images toggling back-and-forth.

But other than _that_ it looks... OK. Probably better than the current cursor, but we could do better.
Attachment #673657 - Flags: feedback?(shorlander)
Attached image One frame of the cursor
Comment on attachment 673657 [details] [diff] [review]
Rough patch

If it was cleaned up a bit it would be better than the low res version we currently use.

Would be really nice to be able to get the native cursor with the blue spinny thing ;)
Attachment #673657 - Flags: feedback?(shorlander) → feedback+
Just noticed a new cursor in Nightly, and found bug 411273 fixed this!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: