The Wayback Machine - https://web.archive.org/web/20221208022602/https://github.com/atom/one-dark-ui/pull/88
Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

Replace spinner #88

Merged
merged 4 commits into from Nov 7, 2015
Merged

Replace spinner #88

merged 4 commits into from Nov 7, 2015

Conversation

simurai
Copy link
Member

@simurai simurai commented Aug 15, 2015

Before:

spinners-before

After:

spinners-after

Benefits:

  • Doesn't need repaints, uses HWA layers
  • Colors match better the theme. Especially the white gif was was hard to see in One light.
  • The gif looked a bit pixelated

Although R.I.P. :octocat: 馃槩

with a hardware accelerated spinner that doesn't cause repaints.
@jerone
Copy link

jerone commented Aug 15, 2015

Last reference to the Octocat gone from Atom 馃槩

New throbber looks great.

@simurai
Copy link
Member Author

simurai commented Aug 15, 2015

Octoface is still in Welcome. 馃槈

screen shot 2015-08-15 at 8 23 10 pm

@thomasjo
Copy link
Member

thomasjo commented Aug 15, 2015

There seems to be a need for additional tuning of the animation. Possibly some serious rounding issues at play. At least there are some very visible problems with how the animation is currently defined/implemented. For instance, look at the base of the hands with respect to the center of the watch face鈥攖hey are not fixed, and at times there's a very visible spacing between the hands near the center (the anchor point or whatever one might call it).

Don't get me wrong, I like the new spinner, but it does need to be tuned/fixed.

@simurai
Copy link
Member Author

simurai commented Aug 18, 2015

For instance, look at the base of the hands with respect to the center of the watch face鈥攖hey are not fixed, and at times there's a very visible spacing between the hands near the center (the anchor point or whatever one might call it).

Hehe.. yeah, that "wiggly" is intentional. Wanted to try something new and make it a bit more "playful". But I was worried that it might look like an "error" or so. Which your observation confirms. 馃槅

@thomasjo Thanks for pointing that out. Ok, I removed it again. Now the center stays fixed:

spinner

On a second thought. Having a "clock" as spinner might not be that ideal. "Clocks" might have some negative feelings attached.. as in "having to wait". Hmm..

@thomasjo
Copy link
Member

thomasjo commented Aug 18, 2015

On a second thought. Having a "clock" as spinner might not be that ideal. "Clocks" might have some negative feelings attached.. as in "having to wait". Hmm..

Likely extremely difficult to achieve, but an animated "atom" (based on the Atom app icon) would be amaze 馃槣

@abe33
Copy link

abe33 commented Aug 18, 2015

Likely extremely difficult to achieve, but an animated "atom" (based on the Atom app icon) would be amaze 馃槣

That seems like a pretty interesting challenge :)

@simurai
Copy link
Member Author

simurai commented Aug 18, 2015

an animated "atom" (based on the Atom app icon) would be amaze

That would be super cool. I think as an SVG graphic, you could animate the strokes. But probably needs repainting for every frame. If not as a spinner, we should def try to do it for the logo in the Welcome or so.

Anyways.. changed it to a 馃悕 spinner. More like a 2D version of an atom:

spinner

@simurai
Copy link
Member Author

simurai commented Nov 7, 2015

Ok, gonna merge this for now. Until we have some kind of Atom spinner.

simurai added a commit that referenced this pull request Nov 7, 2015
@simurai simurai merged commit 116c611 into master Nov 7, 2015
@simurai simurai deleted the sm-spinner branch Nov 7, 2015
simurai added a commit that referenced this pull request Nov 10, 2015
since `.loading` get's used in other contexts and not just for the spinner.

Part of #88
simurai added a commit to atom/one-light-ui that referenced this pull request Nov 10, 2015
since `.loading` get's used in other contexts and not just for the spinner.

Part of atom/one-dark-ui#88
@samhh
Copy link

samhh commented Jan 14, 2016

This is the first thing I noticed from 1.4.0, good work guys!

@jneubrand
Copy link

jneubrand commented Jan 26, 2016

I'm going to get to work on an atom spinner. No guarantees, though, pure css atoms might not work (because there's just :before and :after to work with)

@jneubrand
Copy link

jneubrand commented Jan 26, 2016

Ok, so I've got all the orbitals built. I don't think there's a way for me to add the actual atom's core, though... Once that's in, however, adding orbitals would be easy.
Too bad, I guess. If anybody can make an svg for an atom spinner, that would be awesome!
https://s.codepen.io/jneubrand/debug/BjrRLm

@simurai
Copy link
Member Author

simurai commented Jan 26, 2016

I don't think there's a way for me to add the actual atom's core, though...

Maybe it could be a radial gradient as background. But might be tricky to not animate it with the rest.

If anybody can make an svg for an atom spinner

That would be neat. I think you can animate strokes in SVG. So that it would look like the electron lines are circling around. Although it probably has some performance impact because it needs to repaint all the time.

@jneubrand
Copy link

jneubrand commented Jan 26, 2016

@simurai: That's a great idea! However, you can't apply a box-shadow to a radial gradient, and that's how I was planning to add the electrons...

Any animation that doesn't involve changing box-shadows will involve rotating the paths, which would completely break the way I'm hiding parts of the paths.

@jneubrand
Copy link

jneubrand commented Jan 26, 2016

Actually, it's possible to animate a gradient, and if a simple "thickening" of the line is enough, then the gradient should suffice for this purpose.
I'll have to try tomorrow 馃槃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
6 participants