Native windows get lighter when they’re backgrounded so they stand out
less (at least on OS X). Let’s do this too.
Even the Spotify app, which has dozens of developers gets this wrong.
We’re so awesome :)
Also:
- Renamed a bunch of state variables (next time will make separate
commit, sry)
- All window-related variables (e.g. isFullScreen, isFocused, etc.)
live in `state.window` now
- Remove negative class name, use CSS :not() instead
Fix for small oversight in @dcposch’s recent changes. Broken when
adding the distinction between active and inactive torrents.
Please code review, @dcposch
* Download button is a lot easier to read: white down arrow when off, animated and pulsating green down arrow when downloading, solid green up arrow when seeding
* Play button shows a spinner if you click play before a torrent is ready, then an exclamation point if the torrent still isn't ready after 10 seconds
* Drop target shows up always, not just when the torrent list is empty. Lights up when you drag something
* Fixed alignment, the Xs to delete torrents are now aligned with the + to add a new torrent
* Finishes the saved torrents feature!
* Torrents load and save correctly. Poster is autogenerated only once.
* Torrents can be paused and restarted
* Download button indicates state:
- White means paused
- Pulsating green means downloading
- Solid green means finished downloading, only seeding
From `main-loop`:
> main-loop is an optimization module for a virtual DOM system.
Normally you would re-create the virtual tree every time your state
changes. This is not optimum, with main-loop you will only update your
virtual tree at most once per request animation frame.
> main-loop basically gives you batching of your virtual DOM changes,
which means if you change your model multiple times it will be rendered
once asynchronously on the next request animation frame.
No header on Linux and OSX, just a back button on mouseover
ESC exits fullscreen, or if already not in fullscreen, goes back
More accurate scrub position
Removed the calc(100% -38x) hack, replaced with flexbox