Design: no gradients, nicer default colors

Before, the gradient transparent black overlay made text hard to read in some cases. Torrents without a poster image showed up in blue-gray and didn't look good.
This commit is contained in:
DC
2016-09-22 16:59:02 -07:00
parent 3be018521a
commit 75e5316ba1
2 changed files with 2 additions and 3 deletions

View File

@@ -68,8 +68,7 @@ class PreferencesPage extends React.Component {
const description = this.props.state.unsaved.prefs.openExternalPlayer
? `Torrent media files will always play in ${playerName}.`
: `Torrent media files will play in ${playerName} if WebTorrent cannot ` +
'play them.'
: `Torrent media files will play in ${playerName} if WebTorrent cannot play them.`
return (
<Preference>

View File

@@ -48,7 +48,7 @@ module.exports = class TorrentList extends React.Component {
// Background image: show some nice visuals, like a frame from the movie, if possible
const style = {}
if (torrentSummary.posterFileName) {
const gradient = 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)'
const gradient = 'linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%)'
const posterPath = TorrentSummary.getPosterPath(torrentSummary)
style.backgroundImage = `${gradient}, url('${posterPath}')`
}