Commit Graph

98 Commits

Author SHA1 Message Date
Dan Flettre
b1678b71c6 ensure video is paused before hiding window 2016-03-11 01:10:39 -06:00
Feross Aboukhadijeh
d5c8df4f82 fix fullscreen / float on top menu item exception
Fixes #128
2016-03-10 19:24:59 -08:00
Feross Aboukhadijeh
3c17697aca Merge pull request #121 from feross/logo
Create WebTorrent app icon
2016-03-10 14:56:28 -08:00
Feross Aboukhadijeh
7c94c4166c Create WebTorrent app icon
For #120.
2016-03-10 00:09:21 -08:00
Feross Aboukhadijeh
4fef6d00a8 main modules use require() instead of arguments 2016-03-09 15:20:28 -08:00
Feross Aboukhadijeh
9dcc0522c7 Add Custom Dock Menu (OS X) (fix #113) 2016-03-09 15:17:22 -08:00
Feross Aboukhadijeh
713c87729a all main modules have init() function 2016-03-09 15:15:04 -08:00
Feross Aboukhadijeh
e7d837e813 shortcut order 2016-03-09 15:05:39 -08:00
DC
c176e3897a Add Torrent Link modal 2016-03-09 04:27:01 -08:00
Feross Aboukhadijeh
29298a1074 Register "media key" for play/pause 2016-03-09 03:08:21 -08:00
Feross Aboukhadijeh
a6e8a3462e don't use executeJavaScript() (fix for PR #107)
It’s not *that* much cleaner, but executeJavaScript() feels too much
like eval().

cc @flet
2016-03-09 02:38:59 -08:00
Feross Aboukhadijeh
944a47be72 allow the main process to dispatch any event to the renderer 2016-03-09 02:36:10 -08:00
Feross Aboukhadijeh
fe524f8432 Merge pull request #107 from Flet/pause-on-hide
dispatch a pause event before hiding window on darwin
2016-03-09 02:18:40 -08:00
Feross Aboukhadijeh
56536ad55e Move paste to renderer
The ‘clipboard’ module works in the renderer without using the ’remote’
package. So we can eliminate one IPC call this way :)
2016-03-08 21:06:20 -08:00
Dan Flettre
e686aa8d02 dispatch a pause event before hiding window on darwin 2016-03-08 22:40:51 -06:00
Feross Aboukhadijeh
75067b4dd5 @dcposch PR feedback #82 2016-03-08 17:43:19 -08:00
Feross Aboukhadijeh
6946ab3507 style improvements
- make torrent placeholder the exact size of a normal torrent
- make torrent list window minimum size of two torrents
- make window start out sized for 4 torrents
- increase font size responsively
2016-03-08 15:39:39 -08:00
Feross Aboukhadijeh
e399ac9285 make min window height have room for two torrents 2016-03-08 15:00:10 -08:00
DC
ff56d818f6 Torrent list styling
* 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
2016-03-08 04:20:37 -08:00
Feross Aboukhadijeh
f5a9aa9514 use platform-dependent menu item name for 'close' 2016-03-07 23:06:07 -08:00
Feross Aboukhadijeh
81476a3954 fix bad merge 2016-03-07 22:33:23 -08:00
Feross Aboukhadijeh
0cca67a436 fix fullscreen on Windows
The win.isFullScreen() state takes a second to update so we should just
pass the state manually into onToggleFullScreen().
2016-03-07 22:22:25 -08:00
Feross Aboukhadijeh
7c68be4fd4 code style 2016-03-07 22:21:01 -08:00
Feross Aboukhadijeh
8ab2a1415b update player window title to torrent name (Windows, Linux)
This also moves all the state “diffing” for purposes of updating the
app’s window via Electron APIs into one function updateElectron().
2016-03-07 22:20:39 -08:00
DC
4b890ee9f6 Show Blender Foundation videos by default
* 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
2016-03-07 22:15:47 -08:00
Feross Aboukhadijeh
904d3a6c4b Merge pull request #79 from feross/ui
Fix Windows UX issues
2016-03-07 19:42:45 -08:00
Romain Beaumont
251eff830f hide menu bar in fullscreen, fix #51 2016-03-08 04:00:02 +01:00
Feross Aboukhadijeh
f32825a79e Don't resize window if maximized (when player is opened)
For #3
2016-03-07 18:42:16 -08:00
Feross Aboukhadijeh
ca68e85520 add comments for window options 2016-03-07 18:18:40 -08:00
Feross Aboukhadijeh
58d7f93ec8 Hide top menu bar unless Alt key is pressed (Windows, Linux) 2016-03-07 18:18:31 -08:00
Feross Aboukhadijeh
1ea055eb4a show window without 50ms timeout
Shouldn’t be needed since @ngoldman changed the <script> tag to async.
2016-03-07 18:15:21 -08:00
Feross Aboukhadijeh
2a423a8cb3 Use config.APP_NAME throughout 2016-03-07 15:48:22 -08:00
DC
713c391c05 Add download button
Doesn't do anything yet
2016-03-07 00:01:32 -08:00
Feross Aboukhadijeh
617f0bcf43 export object directly 2016-03-05 20:04:59 -08:00
Feross Aboukhadijeh
79c2295775 move isFullScreen check to ipc.js 2016-03-05 18:28:54 -08:00
Feross Aboukhadijeh
4f1dfc8c1e style 2016-03-05 17:42:03 -08:00
Feross Aboukhadijeh
beca43029d standard 2016-03-05 17:25:22 -08:00
Feross Aboukhadijeh
7eeda57b57 Add alternate fullscreen shortcut ⌘+Shift+F (fix #26)
Uses https://npmjs.com/package/electron-localshortcut to workaround a
bug in Electron (https://github.com/atom/electron/issues/1334).

We can remove `electron-localshortcut` once that bug is fixed.
2016-03-05 17:25:22 -08:00
Feross Aboukhadijeh
30ec87e7a7 windows.js: small fix 2016-03-05 17:24:09 -08:00
Feross Aboukhadijeh
06f18ccb01 Disable view menu items when window is hidden 2016-03-05 16:47:16 -08:00
Feross Aboukhadijeh
11464176cb Start in correct full screen state
If the app is already fullscreen when it is loaded, set
state.view.isFullScreen to the correct state.
2016-03-05 14:56:55 -08:00
Feross Aboukhadijeh
fc68a08de7 menu: new "Add Fake Airplay" and "Add Fake Chromecast" items
Fixes #21
2016-03-05 14:04:33 -08:00
DC
59b3bd04a9 Letterbox video. Hide toolbar in fullscreen
Cleaner-looking Chromecast and Airplay icons

Hide top bar in full screen mode
2016-03-05 05:14:24 -08:00
DC
b7b30ed7c4 Cast buttons and fullscreen in player controls 2016-03-05 01:09:34 -08:00
Feross Aboukhadijeh
d148d4c97b Fix IPC calls after PR #4
No biggie, just FYI @ngoldman
2016-03-04 16:15:30 -08:00
Feross Aboukhadijeh
82fc6cabe8 move config.startTime to app.startTime
This also captures the true start time since it runs before any
require() calls, so the time to require() will be taken into account.
2016-03-04 16:10:14 -08:00
Nate Goldman
9a0f361e14 separation of concerns 2016-03-04 13:14:22 -08:00
DC
52e433fd38 Scrubbing works 2016-03-04 04:33:41 -08:00
Feross Aboukhadijeh
e28dd34ae8 torrent delete button color 2016-03-04 02:04:14 -08:00
Feross Aboukhadijeh
56af326d65 only show title in html toolbar on OS X 2016-03-04 01:28:54 -08:00