WebTorrent
-
diff --git a/main/views/header.js b/main/views/header.js
index 650cf5fa..5cd7015e 100644
--- a/main/views/header.js
+++ b/main/views/header.js
@@ -5,15 +5,19 @@ var h = require('virtual-dom/h')
function Header (state, dispatch) {
return h('.header', [
h('.title', state.title),
- h('.nav.left-nav', [
- h('a.back.icon-left-open.disabled'),
- h('a.forward.icon-right-open')
+ h('.nav.left', [
+ h('i.icon.back.disabled', 'chevron_left'),
+ h('i.icon.forward', 'chevron_right')
]),
- h('.nav.right-nav', [
- h('a.add.icon-plus', {
- onclick: onAddTorrent
- })
- ])
+ (function () {
+ if (state.player !== 'local') {
+ return h('.nav.right', [
+ h('i.icon.add', {
+ onclick: onAddTorrent
+ }, 'add')
+ ])
+ }
+ })()
])
function onAddTorrent (e) {
diff --git a/main/views/torrent-list.js b/main/views/torrent-list.js
index adfde22e..21d053be 100644
--- a/main/views/torrent-list.js
+++ b/main/views/torrent-list.js
@@ -6,7 +6,7 @@ function TorrentList (state, dispatch) {
var list = state.torrents.map(function (torrent) {
var style = {}
if (torrent.posterURL) {
- style['background-image'] = 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)), url("' + torrent.posterURL + '")'
+ style['background-image'] = 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%), url("' + torrent.posterURL + '")'
}
return h('.torrent', {
style: style
@@ -22,24 +22,24 @@ function TorrentList (state, dispatch) {
})()
])
]),
- h('a.btn.play', {
+ h('i.btn.icon.play', {
className: !torrent.ready ? 'disabled' : '',
onclick: openPlayer
- }, '▶'),
+ }, 'play_arrow'),
(function () {
if (state.chromecast) {
- return h('a.btn.chromecast', {
+ return h('i.btn.icon.chromecast', {
className: !torrent.ready ? 'disabled' : '',
onclick: openChromecast
- }, 'C')
+ }, 'cast')
}
})(),
(function () {
if (state.airplay) {
- return h('a.btn.airplay', {
+ return h('i.btn.icon.airplay', {
className: !torrent.ready ? 'disabled' : '',
onclick: openAirplay
- }, 'A')
+ }, 'airplay')
}
})()
])
diff --git a/vendor/MaterialIcons-Regular.woff2 b/vendor/MaterialIcons-Regular.woff2
new file mode 100644
index 00000000..20f1f674
Binary files /dev/null and b/vendor/MaterialIcons-Regular.woff2 differ
diff --git a/vendor/fontello/LICENSE.txt b/vendor/fontello/LICENSE.txt
deleted file mode 100644
index 83a0c493..00000000
--- a/vendor/fontello/LICENSE.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Font license info
-
-
-## MFG Labs
-
- Copyright (C) 2012 by Daniel Bruce
-
- Author: MFG Labs
- License: SIL (http://scripts.sil.org/OFL)
- Homepage: http://www.mfglabs.com/
-
-
diff --git a/vendor/fontello/README.txt b/vendor/fontello/README.txt
deleted file mode 100644
index beaab336..00000000
--- a/vendor/fontello/README.txt
+++ /dev/null
@@ -1,75 +0,0 @@
-This webfont is generated by http://fontello.com open source project.
-
-
-================================================================================
-Please, note, that you should obey original font licenses, used to make this
-webfont pack. Details available in LICENSE.txt file.
-
-- Usually, it's enough to publish content of LICENSE.txt file somewhere on your
- site in "About" section.
-
-- If your project is open-source, usually, it will be ok to make LICENSE.txt
- file publicly available in your repository.
-
-- Fonts, used in Fontello, don't require a clickable link on your site.
- But any kind of additional authors crediting is welcome.
-================================================================================
-
-
-Comments on archive content
----------------------------
-
-- /font/* - fonts in different formats
-
-- /css/* - different kinds of css, for all situations. Should be ok with
- twitter bootstrap. Also, you can skip style and assign icon classes
- directly to text elements, if you don't mind about IE7.
-
-- demo.html - demo file, to show your webfont content
-
-- LICENSE.txt - license info about source fonts, used to build your one.
-
-- config.json - keeps your settings. You can import it back into fontello
- anytime, to continue your work
-
-
-Why so many CSS files ?
------------------------
-
-Because we like to fit all your needs :)
-
-- basic file, .css - is usually enough, it contains @font-face
- and character code definitions
-
-- *-ie7.css - if you need IE7 support, but still don't wish to put char codes
- directly into html
-
-- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face
- rules, but still wish to benefit from css generation. That can be very
- convenient for automated asset build systems. When you need to update font -
- no need to manually edit files, just override old version with archive
- content. See fontello source code for examples.
-
-- *-embedded.css - basic css file, but with embedded WOFF font, to avoid
- CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain.
- We strongly recommend to resolve this issue by `Access-Control-Allow-Origin`
- server headers. But if you ok with dirty hack - this file is for you. Note,
- that data url moved to separate @font-face to avoid problems with
-
-
-
-
-
-
-
-
-
- fontello
- font demo
-
-
-
-
-
-
icon-plus0xe801
-
icon-left-open0xe802
-
icon-right-open0xe803
-
-
-
-
-
\ No newline at end of file
diff --git a/vendor/fontello/font/fontello.eot b/vendor/fontello/font/fontello.eot
deleted file mode 100644
index 70aa0776..00000000
Binary files a/vendor/fontello/font/fontello.eot and /dev/null differ
diff --git a/vendor/fontello/font/fontello.svg b/vendor/fontello/font/fontello.svg
deleted file mode 100644
index 6ce6daa8..00000000
--- a/vendor/fontello/font/fontello.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/vendor/fontello/font/fontello.ttf b/vendor/fontello/font/fontello.ttf
deleted file mode 100644
index a4338820..00000000
Binary files a/vendor/fontello/font/fontello.ttf and /dev/null differ
diff --git a/vendor/fontello/font/fontello.woff b/vendor/fontello/font/fontello.woff
deleted file mode 100644
index dd9ef47d..00000000
Binary files a/vendor/fontello/font/fontello.woff and /dev/null differ