From 033bdf7908ab401470b3e13caa9e11fe0076e687 Mon Sep 17 00:00:00 2001 From: DC Date: Fri, 2 Sep 2016 12:08:57 -0700 Subject: [PATCH] Design: removed hover/select brightness All those gradients and brighness filters toggling on and off were getting annoying --- src/renderer/pages/torrent-list-page.js | 6 ++---- static/main.css | 8 -------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/renderer/pages/torrent-list-page.js b/src/renderer/pages/torrent-list-page.js index 69eae4f0..a8220a9f 100644 --- a/src/renderer/pages/torrent-list-page.js +++ b/src/renderer/pages/torrent-list-page.js @@ -46,11 +46,9 @@ 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 = isSelected - ? 'linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%)' - : '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.5) 0%, rgba(0, 0, 0, 0) 100%)' const posterPath = TorrentSummary.getPosterPath(torrentSummary) - style.backgroundImage = gradient + `, url('${posterPath}')` + style.backgroundImage = `${gradient}, url('${posterPath}')` } // Foreground: name of the torrent, basic info like size, play button, diff --git a/static/main.css b/static/main.css index 35f7a0af..058ad804 100644 --- a/static/main.css +++ b/static/main.css @@ -350,10 +350,6 @@ textarea, border-bottom: 1px solid rgb(20, 20, 20); } -.torrent:hover { - -webkit-filter: brightness(1.1); -} - .torrent .metadata { position: absolute; top: 25px; @@ -538,10 +534,6 @@ body.drag .app::after { height: 28px; } -.torrent-details tr:hover { - background-color: rgba(200, 200, 200, 0.3); -} - .torrent-details td { overflow: hidden; padding: 0;